Scenario: [1.1:82]
17ad94f6-4961-448b-a6f5-5368b7870409
ms: 1006
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:22.955 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
18
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '17ad94f6-4961-448b-a6f5-5368b7870409'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
947
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '17ad94f6-4961-448b-a6f5-5368b7870409'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
1
04:51:23.935 [print] https://inspire.caris.nl/geoserver3/bathy_wcs/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
5
50
* print protocol1
0
04:51:23.940 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:23.941 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:23.942 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:23.944 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:23.944 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/xml.metadata.get?uuid=a322184d-6285-4856-bb78-f450b30ffc0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:23.947 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
3
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:23.951 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:23.952 [print] "true";"true"
76
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
9
Scenario: [1.2:82]
a6098c24-4caf-4528-954c-672b9ec6cf78
ms: 933
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:22.979 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
4
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a6098c24-4caf-4528-954c-672b9ec6cf78'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
895
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a6098c24-4caf-4528-954c-672b9ec6cf78'
3
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:23.893 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:23.894 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:23.895 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:23.896 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:23.897 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:23.897 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:23.901 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:23.902 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:23.904 [print] "false";"false"
76
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
7
78
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.3:82]
6d2fce74-fb25-4322-ab25-1be8a3bc7fd0
ms: 997
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:22.989 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6d2fce74-fb25-4322-ab25-1be8a3bc7fd0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
964
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6d2fce74-fb25-4322-ab25-1be8a3bc7fd0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
5
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
4
45
* print connectUrl
0
04:51:23.975 [print] https://inspire.caris.nl/geoserver3/bathy_wcs/wcs?request=GetCapabilities&service=WCS&version=2.0.1
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:23.977 [print] OGC:WCS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:23.978 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:23.978 [print] OGC:WCS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:23.980 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:23.980 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a322184d-6285-4856-bb78-f450b30ffc0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:23.982 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:23.983 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services 2.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
1
71
* print corConformancePass
0
04:51:23.986 [print] "true";"true"
76
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.4:82]
9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2
ms: 1031
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:22.996 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
8
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
990
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
3
45
* print connectUrl
1
04:51:24.012 [print] https:\/\/geo.rijkswaterstaat.nl\/services\/ogc\/gdr\/bodemhoogte_1mtr\/ows?service=WCS&request=getcapabilities&version=2.0.1
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:24.014 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:24.016 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:24.016 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
1
04:51:24.019 [print] Rijkswaterstaat
57
* print operateson
0
04:51:24.020 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
1
64
* print corConformanceHref
0
04:51:24.023 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/id\/document\/tg\/download-wcs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:24.025 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:24.027 [print] "false";"true"
76
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.5:82]
a7e4bc31-60c1-4b78-bef1-eed768ceafa0
ms: 971
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:23.915 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a7e4bc31-60c1-4b78-bef1-eed768ceafa0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
941
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a7e4bc31-60c1-4b78-bef1-eed768ceafa0'
8
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:51:24.875 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:24.876 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:24.877 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:51:24.878 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:24.880 [print] KNMI
57
* print operateson
0
04:51:24.880 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:24.883 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:24.885 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:24.886 [print] true
76
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.6:82]
91041d33-54f8-40f1-8965-a867ba00cab8
ms: 919
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:23.971 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '91041d33-54f8-40f1-8965-a867ba00cab8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
889
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '91041d33-54f8-40f1-8965-a867ba00cab8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
8
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:24.879 [print] https://inspire.caris.nl/geoserver/gn/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:24.881 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
1
04:51:24.884 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:24.891 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:24.893 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:24.893 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1c3450ea-e161-4f50-ad0e-97a36cdd1308#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:24.895 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:24.897 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:24.898 [print] "true";"true"
76
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.7:82]
7b4a0b26-5885-45cd-a99d-27887cff68e5
ms: 932
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:23.990 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7b4a0b26-5885-45cd-a99d-27887cff68e5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
912
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7b4a0b26-5885-45cd-a99d-27887cff68e5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:51:24.914 [print] https://www.broinspireservices.nl/wms/ossosgm-a-v1.0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:24.915 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:24.916 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:24.916 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:24.917 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:51:24.918 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=a7fb2234-f7b4-4a03-b282-f10947f42fb1&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:24.919 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:24.921 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:24.922 [print] "true";"false"
76
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.8:82]
f61eec5c-cb91-40b6-ad35-9bca967006cc
ms: 940
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:24.035 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
2
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f61eec5c-cb91-40b6-ad35-9bca967006cc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
918
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f61eec5c-cb91-40b6-ad35-9bca967006cc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:24.966 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:24.967 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:24.968 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:24.968 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:24.969 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:24.970 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=588a4cb1-b442-4ac1-87e4-40401e353166#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:24.972 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:24.973 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:24.975 [print] "false";"false"
76
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.9:82]
755d488b-7b94-4883-95be-6aa279604f85
ms: 893
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:24.891 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '755d488b-7b94-4883-95be-6aa279604f85'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
875
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '755d488b-7b94-4883-95be-6aa279604f85'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:25.776 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:25.777 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:25.778 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:25.778 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:25.779 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:25.779 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:25.781 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:25.782 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:25.783 [print] "true";"true";"true"
76
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.10:82]
081bcfff-5f66-467c-95d0-d88dcf9aa4cf
ms: 939
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:24.902 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '081bcfff-5f66-467c-95d0-d88dcf9aa4cf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
922
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '081bcfff-5f66-467c-95d0-d88dcf9aa4cf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:25.833 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:25.834 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:25.835 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:25.835 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:25.836 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:25.836 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:25.838 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:25.839 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:25.840 [print] "true";"true";"true"
76
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.11:82]
e5ef707f-6458-4567-8d2c-d24fe88ab5e9
ms: 955
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:24.927 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
2
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e5ef707f-6458-4567-8d2c-d24fe88ab5e9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
937
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e5ef707f-6458-4567-8d2c-d24fe88ab5e9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:25.875 [print] https://acc.gdngeoservices.nl/geoserver/zout/ows?request=GetCapabilities&service=WMS&version=1.3.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:25.876 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:25.877 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:25.877 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:25.878 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:51:25.878 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=e3b0da1e-0664-4025-b3f5-a54d74a26450&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:25.879 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:25.880 [print] "Technical Guidance for the implementation of INSPIRE View Services";"De service voldoet niet aan de richtlijnen van INSPIRE vanwege technische beperkingen";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:25.881 [print] "false";"false"
76
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.12:82]
0d2ca03b-fb7b-466a-bb93-e2bfb596e394
ms: 974
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:24.979 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0d2ca03b-fb7b-466a-bb93-e2bfb596e394'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
927
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0d2ca03b-fb7b-466a-bb93-e2bfb596e394'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:25.917 [print] https://inspire.caris.nl/gs5/pssa_nl/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:25.917 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:25.918 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:25.918 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
22
56
* print organisationpath
1
04:51:25.941 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:25.941 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=f1d27179-36eb-4376-8048-f51d2eb23a09&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
2
04:51:25.945 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:25.947 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:25.949 [print] "true";"true"
76
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
4
Scenario: [1.13:82]
e29b19de-d191-47f2-b944-5056a7674cce
ms: 902
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:25.787 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e29b19de-d191-47f2-b944-5056a7674cce'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
880
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e29b19de-d191-47f2-b944-5056a7674cce'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:51:26.679 [print] https://inspire.caris.nl/gs5/am/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:26.681 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:26.682 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:26.682 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:26.683 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:26.684 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:26.686 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:26.687 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:26.688 [print] "true";"true"
76
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.14:82]
9de0d2fa-debc-4f27-8298-5399b7844962
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:25.844 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9de0d2fa-debc-4f27-8298-5399b7844962'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9de0d2fa-debc-4f27-8298-5399b7844962'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:26.733 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.1d098355-23c3-4bd3-adf6-192549933ec3?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:26.735 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:26.736 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:51:26.737 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:26.739 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
1
04:51:26.739 [print] https://haleconnect.com/services/bsp/org.874.1d098355-23c3-4bd3-adf6-192549933ec3/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:26.742 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:26.744 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:26.746 [print] true
76
* eval db.writeln('"9de0d2fa-debc-4f27-8298-5399b7844962","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9de0d2fa-debc-4f27-8298-5399b7844962","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9de0d2fa-debc-4f27-8298-5399b7844962","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.15:82]
364c5d7a-d6ec-11ea-87d0-0242ac130003
ms: 912
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:25.885 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '364c5d7a-d6ec-11ea-87d0-0242ac130003'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '364c5d7a-d6ec-11ea-87d0-0242ac130003'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:26.785 [print] #notpresent
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:26.787 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:26.789 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
1
54
* print protocol
1
04:51:26.790 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:26.791 [print] TNO Geologische Dienst Nederland
57
* print operateson
1
04:51:26.792 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=2a379cc6-d16e-11ea-87d0-0242ac130003&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:26.794 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:26.795 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:26.797 [print] "true";"true"
76
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.16:82]
82fa284e-8218-40e4-a593-c2f8a832c3d5
ms: 920
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:25.958 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '82fa284e-8218-40e4-a593-c2f8a832c3d5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
893
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '82fa284e-8218-40e4-a593-c2f8a832c3d5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:26.864 [print] https://acc.gdngeoservices.nl/geoserver/oliegas/ows?request=GetCapabilities&service=WMS&version=1.3.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:26.865 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:26.867 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
1
54
* print protocol
1
04:51:26.868 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:26.869 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:51:26.870 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=b61a773c-ecad-4e60-93e9-0a4caac0b52f&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:26.872 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
3
04:51:26.875 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:26.877 [print] "true";"false"
76
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.17:82]
1e2cb7d4-934a-437a-809e-fda67b4a8824
ms: 938
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:26.693 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1e2cb7d4-934a-437a-809e-fda67b4a8824'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
920
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1e2cb7d4-934a-437a-809e-fda67b4a8824'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:27.625 [print] https://inspire.caris.nl/geoserver/eez/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:27.626 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:27.626 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:27.626 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:27.627 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:27.627 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3296af93-cc8c-4a24-9356-1f68a57db712#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:27.629 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:27.630 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:27.631 [print] "true";"true"
76
* eval db.writeln('"1e2cb7d4-934a-437a-809e-fda67b4a8824","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1e2cb7d4-934a-437a-809e-fda67b4a8824","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"1e2cb7d4-934a-437a-809e-fda67b4a8824","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.18:82]
1492fa63-96e2-406d-9a27-6affe281d848
ms: 935
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:26.752 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
1
8
* def db = db.setfeature(karate.info.featureFileName)
1
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1492fa63-96e2-406d-9a27-6affe281d848'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
916
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1492fa63-96e2-406d-9a27-6affe281d848'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:27.682 [print] https://inspire.caris.nl/geoserver/tz/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:27.683 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:27.684 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:27.684 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:27.685 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:27.685 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7fed469a-77e1-4545-a4cb-eedf389d851f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:27.686 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:27.688 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:27.689 [print] "true";"true"
76
* eval db.writeln('"1492fa63-96e2-406d-9a27-6affe281d848","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"1492fa63-96e2-406d-9a27-6affe281d848","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"1492fa63-96e2-406d-9a27-6affe281d848","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.19:82]
49ff0584-a173-4098-824c-119edf8447f7
ms: 926
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:26.804 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '49ff0584-a173-4098-824c-119edf8447f7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
902
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '49ff0584-a173-4098-824c-119edf8447f7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:27.718 [print] https:\/\/services.rce.geovoorziening.nl\/rce\/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:27.719 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:27.721 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:51:27.721 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:27.723 [print] Rijksdienst voor het Cultureel Erfgoed
57
* print operateson
1
04:51:27.724 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6f84efeb-fc1d-4565-a721-80735ea57dbd#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=4e2ef670-cddd-11dd-ad8b-0800200c9a66#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=88a3c1ae-902e-4efa-8663-ddd836101929#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:27.726 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:27.728 [print] "Nadere uitleg bij het al dan niet volledig voldoen aan de specificatie";"Nadere uitleg bij het al dan niet volledig voldoen aan de specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:27.729 [print] "true";"true"
76
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.20:82]
ebd6ea46-ee7b-432f-83c4-058c889a790d
ms: 901
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:26.888 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ebd6ea46-ee7b-432f-83c4-058c889a790d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
877
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ebd6ea46-ee7b-432f-83c4-058c889a790d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:27.777 [print] http:\/\/services.inspire-provincies.nl\/EnvironmentalMonitoringFacilities\/services\/download_EF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:27.779 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:27.780 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:27.780 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:27.782 [print] Interprovinciaal Overleg
57
* print operateson
1
04:51:27.783 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=c829abeb-bfac-4224-8332-e7a9a89e692e&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=fe45c540-e37d-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:27.785 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:27.787 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.0";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:27.788 [print] "false";"true";"true"
76
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.21:82]
f39d198a-1e69-43cc-b359-cc60a8c22d28
ms: 908
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:27.635 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
2
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f39d198a-1e69-43cc-b359-cc60a8c22d28'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
889
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f39d198a-1e69-43cc-b359-cc60a8c22d28'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:28.535 [print] https://inspire.rivm.nl/sos/eaq/service?service=AQD&version=1.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:28.536 [print] OGC:SOS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:28.537 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:28.537 [print] OGC:SOS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:28.538 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:28.538 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=733559a5-201d-40e5-ad43-d1c7bae84d9f#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d3c9efd6-fca7-49d6-92bb-5f507abece90#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=af135cd8-d429-4fc7-b9e3-09e15217520d#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=b3ec8793-7747-4da0-b6c3-aa384446a586#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5800f3b0-2ea2-4231-8165-216a7b26867f#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d8f370e8-123c-4ab3-9410-04f728327ac6#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=500d396f-5ec6-4e4b-a151-5fb3cddd8082#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:28.539 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:28.540 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Voldoet aan de download specificaties.";"OGC Sensor Observation Service Interface Standard";"Conform OGC SOS specificaties.";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Voldoet aan de SDS interoperabilities specificaties."
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:28.541 [print] "true";"true";"true"
76
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.22:82]
87a382da-c6dc-403c-a006-2379eb6daaa6
ms: 905
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:27.694 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '87a382da-c6dc-403c-a006-2379eb6daaa6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
884
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '87a382da-c6dc-403c-a006-2379eb6daaa6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:28.587 [print] https://inspire.caris.nl/gs5/pssa_nl/ows?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:28.589 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:28.590 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:28.591 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:28.592 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
04:51:28.593 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=f1d27179-36eb-4376-8048-f51d2eb23a09&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:28.595 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:28.596 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:28.598 [print] "true";"true"
76
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.23:82]
7f79fc69-d0c7-4913-a05a-527c90453297
ms: 909
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:27.734 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7f79fc69-d0c7-4913-a05a-527c90453297'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7f79fc69-d0c7-4913-a05a-527c90453297'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:28.635 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:28.636 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:28.637 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:28.637 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:28.638 [print] KNMI
57
* print operateson
0
04:51:28.638 [print] https://haleconnect.com/services/bsp/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:28.640 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:28.641 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:28.642 [print] true
76
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.24:82]
c56433ca-35f2-4aaf-8bfa-35d8e0e52dda
ms: 894
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:27.794 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c56433ca-35f2-4aaf-8bfa-35d8e0e52dda'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
872
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c56433ca-35f2-4aaf-8bfa-35d8e0e52dda'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:28.677 [print] https://data.rivm.nl/geo/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:28.678 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:28.680 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:28.680 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:28.681 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:28.682 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:28.684 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:28.686 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:28.687 [print] "true";"true"
76
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.25:82]
62b01550-9007-4634-b008-bd6071b34b2c
ms: 912
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:28.545 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '62b01550-9007-4634-b008-bd6071b34b2c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
891
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '62b01550-9007-4634-b008-bd6071b34b2c'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:51:29.447 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.1d098355-23c3-4bd3-adf6-192549933ec3?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:29.449 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:29.450 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:29.450 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:29.451 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:29.452 [print] https://haleconnect.com/services/bsp/org.874.1d098355-23c3-4bd3-adf6-192549933ec3/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:29.454 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:29.455 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:29.456 [print] true
76
* eval db.writeln('"62b01550-9007-4634-b008-bd6071b34b2c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"62b01550-9007-4634-b008-bd6071b34b2c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"62b01550-9007-4634-b008-bd6071b34b2c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.26:82]
777f41ee-8269-4bbc-b0e4-f889c62be099
ms: 912
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:28.602 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '777f41ee-8269-4bbc-b0e4-f889c62be099'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '777f41ee-8269-4bbc-b0e4-f889c62be099'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:29.505 [print] https://data.rivm.nl/geo/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:29.506 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:29.507 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:29.508 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:29.509 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:29.509 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:29.511 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:29.513 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:29.514 [print] "false";"false"
76
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.27:82]
7dc30aed-0940-4e69-b34c-9f24b34078eb
ms: 904
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:28.646 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7dc30aed-0940-4e69-b34c-9f24b34078eb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
884
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7dc30aed-0940-4e69-b34c-9f24b34078eb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:29.539 [print] https://data.rivm.nl/geo/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:29.540 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:29.541 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:29.542 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:29.543 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
1
04:51:29.544 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:29.546 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:29.548 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:29.549 [print] "true";"true";"true"
76
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.28:82]
a02c6566-e0ad-4fc1-b217-67cc1099dea2
ms: 904
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:28.692 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a02c6566-e0ad-4fc1-b217-67cc1099dea2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a02c6566-e0ad-4fc1-b217-67cc1099dea2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:29.587 [print] https://data.rivm.nl/geo/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:29.588 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:29.589 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:29.589 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:29.590 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
1
04:51:29.591 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:29.593 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:29.595 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:29.596 [print] "false";"false"
76
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.29:82]
b6d902f4-97e8-4bcc-ba87-e58134645ab7
ms: 905
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:29.464 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
2
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b6d902f4-97e8-4bcc-ba87-e58134645ab7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
881
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b6d902f4-97e8-4bcc-ba87-e58134645ab7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:30.357 [print] https:\/\/inspire.caris.nl\/gs4\/LAT2018OF\/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:30.358 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:30.359 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:30.359 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:30.360 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:30.361 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=be6551de-a709-4c6d-a5e2-f63f0cf038ba&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:30.363 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:30.364 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:30.365 [print] "true";"true"
76
* eval db.writeln('"b6d902f4-97e8-4bcc-ba87-e58134645ab7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b6d902f4-97e8-4bcc-ba87-e58134645ab7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
4
78
* eval db.writeln('"b6d902f4-97e8-4bcc-ba87-e58134645ab7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.30:82]
c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217
ms: 955
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:29.518 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
886
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:30.414 [print] https://haleconnect.com/ows/services/org.874.28716afd-1e98-4623-9239-8abbd9249408_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:30.415 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:30.416 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:30.416 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
19
56
* print organisationpath
0
04:51:30.436 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:30.436 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:30.439 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
9
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
7
04:51:30.456 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
16
04:51:30.473 [print] true
76
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.31:82]
95664230-19bc-4f33-b2cf-10aedbe75c11
ms: 950
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:29.553 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '95664230-19bc-4f33-b2cf-10aedbe75c11'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '95664230-19bc-4f33-b2cf-10aedbe75c11'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
9
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
2
04:51:30.458 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:30.459 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
14
52
* print protocol2
3
04:51:30.476 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:30.477 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
4
04:51:30.481 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
1
04:51:30.482 [print] https://haleconnect.com/services/bsp/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
11
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:30.494 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
5
68
* print corConformanceTitles
2
04:51:30.502 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:30.503 [print] true
76
* eval db.writeln('"95664230-19bc-4f33-b2cf-10aedbe75c11","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"95664230-19bc-4f33-b2cf-10aedbe75c11","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"95664230-19bc-4f33-b2cf-10aedbe75c11","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.32:82]
12505d53-a942-467e-a462-ddbe5ac6467f
ms: 921
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:29.602 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '12505d53-a942-467e-a462-ddbe5ac6467f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
880
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '12505d53-a942-467e-a462-ddbe5ac6467f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
14
04:51:30.508 [print] https://haleconnect.com/ows/services/org.874.28716afd-1e98-4623-9239-8abbd9249408_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:30.509 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:30.510 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:30.511 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:30.512 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:30.513 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
3
04:51:30.517 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:30.519 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
2
04:51:30.521 [print] true
76
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.33:82]
1e01d173-96f4-40b1-8236-c6a9cfdac252
ms: 904
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:30.373 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
1
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1e01d173-96f4-40b1-8236-c6a9cfdac252'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
884
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1e01d173-96f4-40b1-8236-c6a9cfdac252'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:31.269 [print] https://haleconnect.com/ows/services/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:31.270 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:31.271 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:31.271 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:31.272 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:31.272 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:31.274 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:31.275 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:31.277 [print] true
76
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.34:82]
ac873153-d885-45e4-b2ab-ad0600d203d3
ms: 936
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:30.496 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
1
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ac873153-d885-45e4-b2ab-ad0600d203d3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
915
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ac873153-d885-45e4-b2ab-ad0600d203d3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:31.424 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:31.425 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:31.426 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:31.426 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:31.427 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:31.428 [print] https://haleconnect.com/services/bsp/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:31.429 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:31.430 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:31.431 [print] true
76
* eval db.writeln('"ac873153-d885-45e4-b2ab-ad0600d203d3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ac873153-d885-45e4-b2ab-ad0600d203d3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ac873153-d885-45e4-b2ab-ad0600d203d3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.35:82]
7d33772b-8bb4-4c9a-b5b4-07ada37694cd
ms: 1009
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:30.515 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
4
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7d33772b-8bb4-4c9a-b5b4-07ada37694cd'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
977
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7d33772b-8bb4-4c9a-b5b4-07ada37694cd'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:31.508 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:31.509 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:31.510 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:31.511 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:31.512 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:31.512 [print] https://haleconnect.com/services/bsp/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
6
04:51:31.520 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:31.522 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:31.523 [print] true
76
* eval db.writeln('"7d33772b-8bb4-4c9a-b5b4-07ada37694cd","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7d33772b-8bb4-4c9a-b5b4-07ada37694cd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7d33772b-8bb4-4c9a-b5b4-07ada37694cd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.36:82]
ff2a91df-931c-46fe-8f07-a1ec64e1335e
ms: 935
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:30.531 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
5
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
2
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ff2a91df-931c-46fe-8f07-a1ec64e1335e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
909
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ff2a91df-931c-46fe-8f07-a1ec64e1335e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:31.458 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:31.459 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:31.460 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:31.460 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:31.461 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:31.462 [print] https://haleconnect.com/services/bsp/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:31.464 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:31.465 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:31.466 [print] true
76
* eval db.writeln('"ff2a91df-931c-46fe-8f07-a1ec64e1335e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ff2a91df-931c-46fe-8f07-a1ec64e1335e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ff2a91df-931c-46fe-8f07-a1ec64e1335e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.37:82]
3fa3aa0b-cd4a-4680-ad2e-89fc28411565
ms: 878
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:31.281 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3fa3aa0b-cd4a-4680-ad2e-89fc28411565'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
859
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3fa3aa0b-cd4a-4680-ad2e-89fc28411565'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:32.151 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:32.152 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:32.153 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:32.153 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:32.155 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:32.155 [print] https://haleconnect.com/services/bsp/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:32.157 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:32.158 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:32.159 [print] true
76
* eval db.writeln('"3fa3aa0b-cd4a-4680-ad2e-89fc28411565","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3fa3aa0b-cd4a-4680-ad2e-89fc28411565","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"3fa3aa0b-cd4a-4680-ad2e-89fc28411565","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.38:82]
2c2cc118-dee5-448f-9658-e2649bcb7d7f
ms: 898
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:31.435 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2c2cc118-dee5-448f-9658-e2649bcb7d7f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
882
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2c2cc118-dee5-448f-9658-e2649bcb7d7f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:32.326 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:32.327 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:32.328 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:32.328 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:32.329 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:32.329 [print] https://haleconnect.com/services/bsp/org.874.794fa9da-8bf0-4053-83d8-1174f2317dcb/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:32.331 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:32.332 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:32.333 [print] true
76
* eval db.writeln('"2c2cc118-dee5-448f-9658-e2649bcb7d7f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"2c2cc118-dee5-448f-9658-e2649bcb7d7f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"2c2cc118-dee5-448f-9658-e2649bcb7d7f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.39:82]
f95af5dd-e469-43b5-8d67-e4511b29b66b
ms: 914
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:31.474 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f95af5dd-e469-43b5-8d67-e4511b29b66b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
891
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f95af5dd-e469-43b5-8d67-e4511b29b66b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:32.378 [print] https://service.pdok.nl/rvo/schelpdierpercelen/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:32.379 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:32.380 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:32.381 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:32.382 [print] Beheer PDOK
57
* print operateson
1
04:51:32.383 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b4e95a-12d7-4c74-933c-cb267cfe0bcf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:32.385 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:32.387 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de interoperable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:32.388 [print] "true";"true";"true"
76
* eval db.writeln('"f95af5dd-e469-43b5-8d67-e4511b29b66b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f95af5dd-e469-43b5-8d67-e4511b29b66b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f95af5dd-e469-43b5-8d67-e4511b29b66b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.40:82]
9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40
ms: 904
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:31.528 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
880
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
3
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:32.421 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:32.422 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:32.424 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:32.425 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:32.427 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
1
04:51:32.427 [print] https://haleconnect.com/services/bsp/org.874.0f6d394b-5d46-4e53-a985-8fd3bb721d8e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:32.429 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:32.431 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:32.432 [print] true
76
* eval db.writeln('"9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9ff7e9e1-cf7d-40cb-9efa-3a06b8aa4e40","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.41:82]
23aa5150-fcc7-46ea-ae63-a7f198d8bc18
ms: 884
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:32.163 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '23aa5150-fcc7-46ea-ae63-a7f198d8bc18'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
865
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '23aa5150-fcc7-46ea-ae63-a7f198d8bc18'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:33.038 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:33.039 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:33.040 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:33.040 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:33.041 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:33.042 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:33.044 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:33.045 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:33.046 [print] "true";"true";"true"
76
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.42:82]
f3e68b05-f5c8-4796-bc67-33a3db1c1d65
ms: 902
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:32.336 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f3e68b05-f5c8-4796-bc67-33a3db1c1d65'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
884
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f3e68b05-f5c8-4796-bc67-33a3db1c1d65'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:33.230 [print] https://inspire.caris.nl/geoserver/cz/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:33.231 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:33.232 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:33.232 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:33.233 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:33.233 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=424c1d5c-063b-4372-99f5-c85786b4a9d0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:33.235 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:33.236 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:33.237 [print] "true";"true"
76
* eval db.writeln('"f3e68b05-f5c8-4796-bc67-33a3db1c1d65","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"f3e68b05-f5c8-4796-bc67-33a3db1c1d65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f3e68b05-f5c8-4796-bc67-33a3db1c1d65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.43:82]
97b49056-8ace-426c-ae3e-bf7efe4c000f
ms: 905
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:32.392 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '97b49056-8ace-426c-ae3e-bf7efe4c000f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '97b49056-8ace-426c-ae3e-bf7efe4c000f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:33.289 [print] https://inspire.caris.nl/geoserver/baselinews/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:33.290 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:33.291 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:33.291 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:33.292 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:33.292 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:33.293 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:33.295 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:33.296 [print] "true";"true"
76
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.44:82]
dda53ebc-bee7-4765-8f1f-6ac59b0aec39
ms: 913
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:32.437 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dda53ebc-bee7-4765-8f1f-6ac59b0aec39'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
894
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dda53ebc-bee7-4765-8f1f-6ac59b0aec39'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
3
45
* print connectUrl
0
04:51:33.343 [print] https://www.broinspireservices.nl/wms/ossobor-a-v1.0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:33.344 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:33.344 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:33.345 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:33.346 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:51:33.346 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=9dd9bf30-36e6-45ae-b368-bdef2720bdde&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:33.347 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:33.348 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:33.349 [print] "true";"false"
76
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.45:82]
0426f471-f325-42ed-a775-81c397592e86
ms: 915
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:33.051 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0426f471-f325-42ed-a775-81c397592e86'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
889
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0426f471-f325-42ed-a775-81c397592e86'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:33.950 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:33.951 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:33.952 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:33.953 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:33.954 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
1
04:51:33.955 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:33.957 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
2
68
* print corConformanceTitles
1
04:51:33.960 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
4
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:33.965 [print] "false";"false"
76
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.46:82]
2f28bd85-0afc-4dc1-85f3-dac55c1b485e
ms: 882
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:33.241 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2f28bd85-0afc-4dc1-85f3-dac55c1b485e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
861
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2f28bd85-0afc-4dc1-85f3-dac55c1b485e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:34.112 [print] https://haleconnect.com/ows/services/org.874.c4108a11-bdbb-4461-8902-423531561a7e_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:34.113 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:34.114 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:34.114 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:34.115 [print] KNMI
57
* print operateson
0
04:51:34.115 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:34.117 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:34.119 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:34.120 [print] true
76
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
3
78
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.47:82]
4074b3c3-ca85-45ad-bc0d-b5fca8540z0b
ms: 891
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:33.299 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4074b3c3-ca85-45ad-bc0d-b5fca8540z0b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
875
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4074b3c3-ca85-45ad-bc0d-b5fca8540z0b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:34.183 [print] https://service.pdok.nl/kadaster/adressen/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:34.184 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:34.185 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:34.185 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:34.186 [print] Beheer PDOK
57
* print operateson
0
04:51:34.186 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:34.188 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:34.189 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:34.190 [print] "true";"true"
76
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540z0b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540z0b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540z0b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.48:82]
914a6e0c-2aae-42f8-8425-2a047c245dab
ms: 894
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:33.353 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '914a6e0c-2aae-42f8-8425-2a047c245dab'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
875
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '914a6e0c-2aae-42f8-8425-2a047c245dab'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:34.240 [print] https://haleconnect.com/ows/services/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:34.241 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:34.242 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:34.242 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:34.243 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:34.243 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:34.245 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:34.246 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:34.247 [print] true
76
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.49:82]
eec0708d-bab6-41c2-aa5b-9c435a1a177e
ms: 934
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:33.969 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
7
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eec0708d-bab6-41c2-aa5b-9c435a1a177e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
907
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eec0708d-bab6-41c2-aa5b-9c435a1a177e'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:34.895 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:34.897 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:34.898 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:34.898 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:34.899 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:34.899 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:34.901 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:34.902 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:34.903 [print] true
76
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.50:82]
ea4cb6a2-f637-413a-91cc-d58473c2f138
ms: 931
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:34.127 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ea4cb6a2-f637-413a-91cc-d58473c2f138'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ea4cb6a2-f637-413a-91cc-d58473c2f138'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
31
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
0
04:51:35.047 [print] http://services.inspire-provincies.nl/EnvironmentalMonitoringFacilities/services/view_EF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:35.049 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:35.050 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:35.051 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:35.052 [print] Interprovinciaal Overleg
57
* print operateson
1
04:51:35.053 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=c829abeb-bfac-4224-8332-e7a9a89e692e&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=fe45c540-e37d-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:35.055 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:35.057 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services 3.1";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:35.058 [print] "false";"true";"true"
76
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.51:82]
7d533012-21ad-4a5b-a97e-a76988270273
ms: 910
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:34.194 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7d533012-21ad-4a5b-a97e-a76988270273'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7d533012-21ad-4a5b-a97e-a76988270273'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:35.095 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:35.096 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:35.097 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:35.098 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:35.099 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:35.099 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:35.101 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:35.102 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:35.103 [print] true
76
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.52:82]
5dfccef3-9b52-47f2-bb02-66b74aaf3af8
ms: 949
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:34.251 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5dfccef3-9b52-47f2-bb02-66b74aaf3af8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
907
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5dfccef3-9b52-47f2-bb02-66b74aaf3af8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
6
45
* print connectUrl
1
04:51:35.174 [print] https://inspire.caris.nl/geoserver/tz/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:35.176 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:35.177 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:51:35.178 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:35.179 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
8
04:51:35.187 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7fed469a-77e1-4545-a4cb-eedf389d851f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
2
04:51:35.191 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:35.193 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:35.195 [print] "true";"true"
76
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
2
77
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
3
78
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.53:82]
ce0a3f8e-6713-455f-805e-a067162c287d
ms: 906
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:34.907 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ce0a3f8e-6713-455f-805e-a067162c287d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ce0a3f8e-6713-455f-805e-a067162c287d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:35.806 [print] https://haleconnect.com/ows/services/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:35.807 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:35.808 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:35.808 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:35.809 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:35.810 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:35.811 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:35.813 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:35.814 [print] true
76
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.54:82]
b9fa42a0-41f9-4405-a593-d51721939222
ms: 952
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:35.062 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b9fa42a0-41f9-4405-a593-d51721939222'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
935
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b9fa42a0-41f9-4405-a593-d51721939222'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:36.008 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2017/wfs/v1_0?request=getCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:36.009 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:36.009 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:36.009 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:36.010 [print] Beheer PDOK
57
* print operateson
0
04:51:36.010 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9bf1ce1-5197-409e-b19e-340e50afafc4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:36.012 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:36.013 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:36.014 [print] "true";"true";"true"
76
* eval db.writeln('"b9fa42a0-41f9-4405-a593-d51721939222","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b9fa42a0-41f9-4405-a593-d51721939222","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b9fa42a0-41f9-4405-a593-d51721939222","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.55:82]
89b35a6c-c099-456b-8eaf-2b83c7a35c74
ms: 959
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:35.107 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '89b35a6c-c099-456b-8eaf-2b83c7a35c74'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
933
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '89b35a6c-c099-456b-8eaf-2b83c7a35c74'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
3
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
3
04:51:36.055 [print] https://service.pdok.nl/rvo/nationaleparken/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:36.057 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:36.058 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:36.058 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:36.060 [print] Beheer PDOK
57
* print operateson
1
04:51:36.060 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:36.062 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:36.064 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:36.065 [print] "true";"true"
76
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.56:82]
d7d19437-f875-45b3-86cd-2fa3335479ec
ms: 941
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:35.204 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd7d19437-f875-45b3-86cd-2fa3335479ec'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
919
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd7d19437-f875-45b3-86cd-2fa3335479ec'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:36.135 [print] https://service.pdok.nl/rvo/nationaleparken/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:36.136 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:36.137 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:36.138 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:36.139 [print] Beheer PDOK
57
* print operateson
1
04:51:36.139 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:36.142 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:36.143 [print] "Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de interoperable conformance class.";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:36.145 [print] "true";"true";"true"
76
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.57:82]
448cc407-e405-4f07-8260-7489ec3b4f14
ms: 900
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:35.818 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '448cc407-e405-4f07-8260-7489ec3b4f14'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
882
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '448cc407-e405-4f07-8260-7489ec3b4f14'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:36.710 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2017/wms/v1_0?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:36.710 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:36.711 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:36.712 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:36.713 [print] Beheer PDOK
57
* print operateson
0
04:51:36.713 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9bf1ce1-5197-409e-b19e-340e50afafc4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:36.715 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:36.716 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:36.717 [print] "true";"true"
76
* eval db.writeln('"448cc407-e405-4f07-8260-7489ec3b4f14","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"448cc407-e405-4f07-8260-7489ec3b4f14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"448cc407-e405-4f07-8260-7489ec3b4f14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.58:82]
b0119753-5625-4500-9df3-13823ff9868f
ms: 896
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:36.017 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b0119753-5625-4500-9df3-13823ff9868f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
882
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b0119753-5625-4500-9df3-13823ff9868f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:36.907 [print] https://service.pdok.nl/rvo/habitatrichtlijntypen/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:36.908 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:36.909 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:36.909 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:36.909 [print] Beheer PDOK
57
* print operateson
0
04:51:36.910 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:36.911 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:36.912 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:36.913 [print] "true";"true"
76
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.59:82]
af4841b5-ce83-4edb-af41-429a21140316
ms: 886
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:36.069 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'af4841b5-ce83-4edb-af41-429a21140316'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
870
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'af4841b5-ce83-4edb-af41-429a21140316'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:36.948 [print] https://service.pdok.nl/rvo/habitatrichtlijntypen/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:36.949 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:36.949 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:36.949 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:36.950 [print] Beheer PDOK
57
* print operateson
0
04:51:36.951 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:36.952 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:36.953 [print] "Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:36.954 [print] "true";"true";"true"
76
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.60:82]
1ce74355-763a-481d-b9d7-aaafbf0d7d53
ms: 880
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:36.149 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1ce74355-763a-481d-b9d7-aaafbf0d7d53'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
863
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1ce74355-763a-481d-b9d7-aaafbf0d7d53'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:37.021 [print] https://service.pdok.nl/rvo/habitatrichtlijnsoorten/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:37.022 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:37.023 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:37.023 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:37.024 [print] Beheer PDOK
57
* print operateson
0
04:51:37.024 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=28c4780a-1a44-4376-b283-14a50a481729#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:37.025 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:37.026 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:37.028 [print] "true";"true"
76
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.61:82]
9c4862c3-0bab-49c3-bc2f-ac5486826766
ms: 889
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:36.721 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c4862c3-0bab-49c3-bc2f-ac5486826766'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
874
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c4862c3-0bab-49c3-bc2f-ac5486826766'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:37.604 [print] https://service.pdok.nl/rvo/habitatrichtlijnsoorten/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:37.605 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:37.605 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:37.605 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:37.606 [print] Beheer PDOK
57
* print operateson
0
04:51:37.606 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=28c4780a-1a44-4376-b283-14a50a481729#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:37.608 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:37.609 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:37.610 [print] "true";"true";"true"
76
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.62:82]
3dc373ae-fcf6-49c9-b315-9a2178bffe4a
ms: 893
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:36.916 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3dc373ae-fcf6-49c9-b315-9a2178bffe4a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
873
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3dc373ae-fcf6-49c9-b315-9a2178bffe4a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:37.803 [print] https://service.pdok.nl/rvo/restwarmte/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:37.804 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:37.805 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:37.805 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:37.806 [print] Beheer PDOK
57
* print operateson
0
04:51:37.807 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:37.809 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:37.810 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:37.811 [print] "true";"true"
76
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.63:82]
93a9571d-1754-47ee-a8f9-92633abfab3a
ms: 918
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:36.958 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '93a9571d-1754-47ee-a8f9-92633abfab3a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
893
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '93a9571d-1754-47ee-a8f9-92633abfab3a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:37.862 [print] https://service.pdok.nl/rvo/invasieve-exoten/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:37.863 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:37.864 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:51:37.865 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:37.867 [print] Beheer PDOK
57
* print operateson
1
04:51:37.868 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3703b249-a0eb-484e-ba7a-10e31a55bcec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:37.871 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:37.873 [print] "Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de interoperable conformance class.";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:37.875 [print] "true";"true";"true"
76
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.64:82]
b196f948-5d87-4eb4-9854-a93841c3877f
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:37.032 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b196f948-5d87-4eb4-9854-a93841c3877f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b196f948-5d87-4eb4-9854-a93841c3877f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:37.925 [print] https://service.pdok.nl/rvo/invasieve-exoten/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:37.926 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:37.927 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:37.928 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:37.929 [print] Beheer PDOK
57
* print operateson
1
04:51:37.929 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3703b249-a0eb-484e-ba7a-10e31a55bcec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:37.932 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:37.933 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:37.934 [print] "true";"true"
76
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.65:82]
3bfab77c-1663-4334-b7cb-b972de6096b1
ms: 909
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:37.613 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3bfab77c-1663-4334-b7cb-b972de6096b1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
889
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3bfab77c-1663-4334-b7cb-b972de6096b1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:38.513 [print] https://service.pdok.nl/provincies/geluidzones-rondom-vliegvelden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:38.514 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:38.515 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:38.516 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:38.517 [print] Beheer PDOK
57
* print operateson
1
04:51:38.518 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=41023936-009d-48ec-a90d-c966895463c1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:38.519 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:38.521 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:38.522 [print] "true";"true"
76
* eval db.writeln('"3bfab77c-1663-4334-b7cb-b972de6096b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3bfab77c-1663-4334-b7cb-b972de6096b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"3bfab77c-1663-4334-b7cb-b972de6096b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.66:82]
7977f282-433e-41f9-940b-63f5d28ee44c
ms: 887
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:37.815 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7977f282-433e-41f9-940b-63f5d28ee44c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
870
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7977f282-433e-41f9-940b-63f5d28ee44c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:38.694 [print] https://service.pdok.nl/provincies/stiltegebieden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:38.695 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:38.696 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:38.696 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:38.697 [print] Beheer PDOK
57
* print operateson
0
04:51:38.697 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:38.699 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:38.700 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:38.701 [print] "true";"true"
76
* eval db.writeln('"7977f282-433e-41f9-940b-63f5d28ee44c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7977f282-433e-41f9-940b-63f5d28ee44c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7977f282-433e-41f9-940b-63f5d28ee44c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.67:82]
598c4109-21d2-4a6c-b083-9975a6736853
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:37.881 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '598c4109-21d2-4a6c-b083-9975a6736853'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
885
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '598c4109-21d2-4a6c-b083-9975a6736853'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:38.776 [print] https://service.pdok.nl/rws/weggeg/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:38.777 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:38.778 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:38.778 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:38.779 [print] Beheer PDOK
57
* print operateson
0
04:51:38.779 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=abaf1e22-55aa-4a11-a855-7ac963e4a82b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=abaf1e22-55aa-4a11-a855-7ac963e4a82b#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:38.781 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:38.782 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:38.783 [print] "true";"true"
76
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.68:82]
6c62e0a5-c215-4e47-94b0-a239e264417d
ms: 886
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:37.938 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6c62e0a5-c215-4e47-94b0-a239e264417d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
869
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6c62e0a5-c215-4e47-94b0-a239e264417d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:38.815 [print] https://service.pdok.nl/kadaster/plu/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:38.816 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:38.817 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:38.818 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:38.819 [print] Beheer PDOK
57
* print operateson
0
04:51:38.819 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a36#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:38.821 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:38.822 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:38.824 [print] "true";"true"
76
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.69:82]
589a9223-7588-4cd7-93aa-5373a12d8cea
ms: 931
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:38.526 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '589a9223-7588-4cd7-93aa-5373a12d8cea'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
916
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '589a9223-7588-4cd7-93aa-5373a12d8cea'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:39.450 [print] https://service.pdok.nl/kadaster/hy/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:39.451 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:39.452 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:39.452 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:39.453 [print] Beheer PDOK
57
* print operateson
0
04:51:39.453 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:39.454 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:39.455 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:39.456 [print] "true";"true"
76
* eval db.writeln('"589a9223-7588-4cd7-93aa-5373a12d8cea","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"589a9223-7588-4cd7-93aa-5373a12d8cea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"589a9223-7588-4cd7-93aa-5373a12d8cea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.70:82]
1bd24d1e-aa13-4395-809e-893570f7c651
ms: 914
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:38.705 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1bd24d1e-aa13-4395-809e-893570f7c651'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
898
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1bd24d1e-aa13-4395-809e-893570f7c651'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:39.612 [print] https://service.pdok.nl/kvk/overheidsdiensten/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:39.613 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:39.613 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:39.613 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:39.614 [print] Beheer PDOK
57
* print operateson
0
04:51:39.614 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=c935f2ab-9b65-4dc4-94a0-73aeb840a941#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:39.616 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:39.617 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:39.618 [print] "true";"true"
76
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.71:82]
d1cb16ca-2029-454f-b3f1-f70bceaf62c1
ms: 897
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:38.787 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd1cb16ca-2029-454f-b3f1-f70bceaf62c1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd1cb16ca-2029-454f-b3f1-f70bceaf62c1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
6
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:39.677 [print] https:\/\/service.pdok.nl\/bzk\/bro-geomorfologischekaart\/wms\/v2_0?request=getcapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:39.678 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:39.679 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:39.680 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:39.680 [print] Beheer PDOK
57
* print operateson
0
04:51:39.680 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=459231d0-7379-4f26-a444-7616e1d888f0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:39.682 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:39.683 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:39.684 [print] "true";"true"
76
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.72:82]
4ce823b4-94b4-4d24-8512-519179315878
ms: 905
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:38.827 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4ce823b4-94b4-4d24-8512-519179315878'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
886
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4ce823b4-94b4-4d24-8512-519179315878'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:39.723 [print] https://service.pdok.nl/provincies/provinciale-monumenten/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:39.724 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:39.725 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:39.726 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:39.727 [print] Beheer PDOK
57
* print operateson
1
04:51:39.727 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ca94a0cb-7561-4a10-a7d6-b840e56c33ff#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:39.729 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:39.730 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:39.747 [print] "true";"true"
76
* eval db.writeln('"4ce823b4-94b4-4d24-8512-519179315878","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"4ce823b4-94b4-4d24-8512-519179315878","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"4ce823b4-94b4-4d24-8512-519179315878","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.73:82]
2e5571fb-c840-4d84-8224-62ee7293b2b3
ms: 894
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:39.460 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2e5571fb-c840-4d84-8224-62ee7293b2b3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
877
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2e5571fb-c840-4d84-8224-62ee7293b2b3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:40.346 [print] https://service.pdok.nl/provincies/grondwaterbeschermingsgebieden/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:40.347 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:40.348 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:40.348 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:40.349 [print] Beheer PDOK
57
* print operateson
0
04:51:40.350 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=666554ed-5106-487d-b4bf-69fbd888a6d7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:40.351 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:40.352 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:40.354 [print] "true";"true"
76
* eval db.writeln('"2e5571fb-c840-4d84-8224-62ee7293b2b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2e5571fb-c840-4d84-8224-62ee7293b2b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2e5571fb-c840-4d84-8224-62ee7293b2b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.74:82]
972edbaa-f860-4c48-b449-4f238a263472
ms: 893
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:39.623 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
4
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '972edbaa-f860-4c48-b449-4f238a263472'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
861
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '972edbaa-f860-4c48-b449-4f238a263472'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:40.499 [print] https://service.pdok.nl/rvo/restwarmte/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:40.501 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:40.502 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:51:40.503 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:40.504 [print] Beheer PDOK
57
* print operateson
1
04:51:40.504 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:40.507 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:40.509 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:40.510 [print] "true";"true"
76
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
3
78
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
4
Scenario: [1.75:82]
8129296b-b9c1-489f-990a-df4a879e12b2
ms: 898
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:39.687 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8129296b-b9c1-489f-990a-df4a879e12b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8129296b-b9c1-489f-990a-df4a879e12b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:40.574 [print] https://service.pdok.nl/cbs/hh/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:40.575 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:40.577 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:51:40.577 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:40.578 [print] Beheer PDOK
57
* print operateson
1
04:51:40.579 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:40.582 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:40.583 [print] "Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de interoperable conformance class.";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:40.585 [print] "true";"true";"true"
76
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.76:82]
f0c6fbfe-a172-4223-8af3-58f6a28c881d
ms: 900
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
1
04:51:39.751 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f0c6fbfe-a172-4223-8af3-58f6a28c881d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
878
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f0c6fbfe-a172-4223-8af3-58f6a28c881d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:40.641 [print] https://service.pdok.nl/cbs/hh/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:40.643 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:40.644 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:40.644 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:40.645 [print] Beheer PDOK
57
* print operateson
0
04:51:40.646 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:40.648 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:40.649 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:40.650 [print] "true";"true"
76
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.77:82]
03c48a93-1e31-4c69-92c6-9a7efecf67a9
ms: 911
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:40.357 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '03c48a93-1e31-4c69-92c6-9a7efecf67a9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
895
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '03c48a93-1e31-4c69-92c6-9a7efecf67a9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:41.262 [print] https://service.pdok.nl/rws/digitaaltopografischbestand/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:41.263 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:41.264 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:41.264 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:41.264 [print] Beheer PDOK
57
* print operateson
0
04:51:41.265 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b137b8-2317-42c2-aced-204c4216d68d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:41.266 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:41.267 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:41.268 [print] "true";"true"
76
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.78:82]
275b64ab-34c2-41f8-8904-97812c7f716e
ms: 916
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:40.523 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '275b64ab-34c2-41f8-8904-97812c7f716e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
896
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '275b64ab-34c2-41f8-8904-97812c7f716e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:41.429 [print] https://service.pdok.nl/rvo/beschermdegebieden/wetlands/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:41.430 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:41.431 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:41.432 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:41.433 [print] Beheer PDOK
57
* print operateson
0
04:51:41.433 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=19165027-a13a-4c19-9013-ec1fd191019d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:41.435 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
1
68
* print corConformanceTitles
1
04:51:41.437 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:41.438 [print] "true";"true"
76
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.79:82]
bc0b75c6-3eef-49de-aca2-8483024903c1
ms: 894
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:40.589 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bc0b75c6-3eef-49de-aca2-8483024903c1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bc0b75c6-3eef-49de-aca2-8483024903c1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:41.475 [print] https://service.pdok.nl/rvo/beschermdegebieden/wetlands/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:41.476 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:41.477 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:41.478 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:41.479 [print] Beheer PDOK
57
* print operateson
0
04:51:41.479 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=19165027-a13a-4c19-9013-ec1fd191019d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:41.481 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:41.482 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de interoperable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:41.482 [print] "true";"true";"true"
76
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.80:82]
f917ffa9-1531-48ea-867e-0d413d85b05a
ms: 892
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:40.661 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f917ffa9-1531-48ea-867e-0d413d85b05a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
878
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f917ffa9-1531-48ea-867e-0d413d85b05a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:41.547 [print] https://service.pdok.nl/rws/digitaaltopografischbestand/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:41.548 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:41.549 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:41.549 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:41.549 [print] Beheer PDOK
57
* print operateson
0
04:51:41.549 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b137b8-2317-42c2-aced-204c4216d68d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:41.551 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:41.552 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:41.552 [print] "true";"true"
76
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.81:82]
01d4dab6-03ad-4e82-b719-4daf8b96ea14
ms: 919
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:41.271 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '01d4dab6-03ad-4e82-b719-4daf8b96ea14'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
897
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '01d4dab6-03ad-4e82-b719-4daf8b96ea14'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:42.178 [print] https://service.pdok.nl/kadaster/au/wms/v2_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
04:51:42.180 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:42.181 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:42.181 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
3
56
* print organisationpath
1
04:51:42.185 [print] Beheer PDOK
57
* print operateson
1
04:51:42.185 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7dd1fd45-ace5-41e0-93a6-64e3be231717#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:42.187 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:42.189 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:42.190 [print] "true";"true"
76
* eval db.writeln('"01d4dab6-03ad-4e82-b719-4daf8b96ea14","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"01d4dab6-03ad-4e82-b719-4daf8b96ea14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"01d4dab6-03ad-4e82-b719-4daf8b96ea14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.82:82]
8abcd2d1-3beb-43e5-a572-2b2da05a0a98
ms: 905
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:41.442 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8abcd2d1-3beb-43e5-a572-2b2da05a0a98'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
887
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8abcd2d1-3beb-43e5-a572-2b2da05a0a98'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:42.338 [print] https://service.pdok.nl/rws/nhi/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:42.339 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:42.341 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:42.341 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:42.342 [print] Beheer PDOK
57
* print operateson
1
04:51:42.343 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:42.345 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:42.346 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:42.347 [print] "true";"true"
76
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.83:82]
d9cc67ba-5491-4640-86ac-b8d392250270
ms: 888
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:41.486 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd9cc67ba-5491-4640-86ac-b8d392250270'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
870
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd9cc67ba-5491-4640-86ac-b8d392250270'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:42.364 [print] https://service.pdok.nl/bzk/bro-bodemkaart/wms/v1_0?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:42.365 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:42.366 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:42.367 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:42.368 [print] Beheer PDOK
57
* print operateson
1
04:51:42.369 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:42.370 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:42.372 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:42.373 [print] "true";"true"
76
* eval db.writeln('"d9cc67ba-5491-4640-86ac-b8d392250270","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d9cc67ba-5491-4640-86ac-b8d392250270","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d9cc67ba-5491-4640-86ac-b8d392250270","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.84:82]
4041f923-6b77-4816-bf46-437e85416c31
ms: 893
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:41.556 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4041f923-6b77-4816-bf46-437e85416c31'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
873
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4041f923-6b77-4816-bf46-437e85416c31'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:42.439 [print] https://service.pdok.nl/rws/richtlijnmarienestrategienederland/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:42.440 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:42.441 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:42.442 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:42.443 [print] Beheer PDOK
57
* print operateson
1
04:51:42.444 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=604d241d-6792-4286-bbef-44b2ce5c38c1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=353108a0-f0f8-4f8e-9d0e-60f18dfda169#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a33c92d0-e29b-43cb-b681-f942ef597331#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:42.446 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:42.447 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:42.448 [print] "true";"true"
76
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.85:82]
85e7cf82-b0f2-45d6-84d4-154e203ebf70
ms: 896
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:42.194 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '85e7cf82-b0f2-45d6-84d4-154e203ebf70'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
873
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '85e7cf82-b0f2-45d6-84d4-154e203ebf70'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
7
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:43.083 [print] https://service.pdok.nl/rvo/wetlands/wms/v1_0?request=getcapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:43.084 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:43.084 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:43.085 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:43.085 [print] Beheer PDOK
57
* print operateson
0
04:51:43.086 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07d73b60-dfd6-4c54-9c82-9fac70c6c48e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:43.087 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:43.088 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Metadata is conform specificatie";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Metadata is conform specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:43.089 [print] "true";"true"
76
* eval db.writeln('"85e7cf82-b0f2-45d6-84d4-154e203ebf70","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"85e7cf82-b0f2-45d6-84d4-154e203ebf70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"85e7cf82-b0f2-45d6-84d4-154e203ebf70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.86:82]
9c80458b-12c6-4d38-8f6d-387ab6e4ed21
ms: 891
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:42.351 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c80458b-12c6-4d38-8f6d-387ab6e4ed21'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
868
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c80458b-12c6-4d38-8f6d-387ab6e4ed21'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
4
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:51:43.233 [print] https://service.pdok.nl/rvo/natura2000/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:43.234 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:43.236 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:43.236 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:43.237 [print] Beheer PDOK
57
* print operateson
0
04:51:43.238 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8829e5dd-c861-4639-a6c8-fdbb6e3440d2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:43.240 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:43.241 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:43.242 [print] "false";"false"
76
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.87:82]
a7aeddf2-3b37-4668-9c75-de93d9326276
ms: 895
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:42.377 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a7aeddf2-3b37-4668-9c75-de93d9326276'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
878
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a7aeddf2-3b37-4668-9c75-de93d9326276'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:43.264 [print] https://service.pdok.nl/rvo/beschermdegebieden/natura2000/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:43.264 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:43.265 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:43.265 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:43.267 [print] Beheer PDOK
57
* print operateson
0
04:51:43.267 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=280ed37a-b8d2-4ac5-8567-04d84fad3a41#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:43.269 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:43.270 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:43.271 [print] "true";"true"
76
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.88:82]
e258f171-6f56-4d4d-8311-027b30213c2d
ms: 895
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:42.453 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e258f171-6f56-4d4d-8311-027b30213c2d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
880
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e258f171-6f56-4d4d-8311-027b30213c2d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:43.341 [print] https://service.pdok.nl/kadaster/cp/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:43.342 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:43.343 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:43.343 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:43.344 [print] Beheer PDOK
57
* print operateson
0
04:51:43.344 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e80ad426-1392-4349-9f80-14dae5f1bf57#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:43.346 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:43.347 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:43.348 [print] "true";"true"
76
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.89:82]
68a42961-ed55-436b-a412-cc7424fd2a6e
ms: 909
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:43.094 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68a42961-ed55-436b-a412-cc7424fd2a6e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
893
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68a42961-ed55-436b-a412-cc7424fd2a6e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:44.001 [print] https://service.pdok.nl/rvo/wetlands/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:44.002 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:44.003 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:44.003 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:44.004 [print] Beheer PDOK
57
* print operateson
0
04:51:44.004 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07d73b60-dfd6-4c54-9c82-9fac70c6c48e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:44.006 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:44.007 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:44.008 [print] "true";"true";"true"
76
* eval db.writeln('"68a42961-ed55-436b-a412-cc7424fd2a6e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68a42961-ed55-436b-a412-cc7424fd2a6e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"68a42961-ed55-436b-a412-cc7424fd2a6e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.90:82]
b965603f-7354-4d5c-9357-68c1c3777117
ms: 908
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:43.246 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b965603f-7354-4d5c-9357-68c1c3777117'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b965603f-7354-4d5c-9357-68c1c3777117'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:44.147 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2019/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:44.148 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:44.149 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:44.149 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:44.150 [print] Beheer PDOK
57
* print operateson
0
04:51:44.150 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:44.152 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:44.153 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:44.154 [print] "true";"true"
76
* eval db.writeln('"b965603f-7354-4d5c-9357-68c1c3777117","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b965603f-7354-4d5c-9357-68c1c3777117","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b965603f-7354-4d5c-9357-68c1c3777117","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.91:82]
97590436-ecaf-422b-a95e-6aa9a00b47b0
ms: 929
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:43.275 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '97590436-ecaf-422b-a95e-6aa9a00b47b0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
911
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '97590436-ecaf-422b-a95e-6aa9a00b47b0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:44.195 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2018/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:44.196 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:44.197 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:44.197 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:44.198 [print] Beheer PDOK
57
* print operateson
0
04:51:44.199 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:44.201 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:44.202 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:44.203 [print] "true";"true"
76
* eval db.writeln('"97590436-ecaf-422b-a95e-6aa9a00b47b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"97590436-ecaf-422b-a95e-6aa9a00b47b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"97590436-ecaf-422b-a95e-6aa9a00b47b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.92:82]
db353b96-5d0b-453c-87c6-4466dfb65a9b
ms: 897
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:43.351 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'db353b96-5d0b-453c-87c6-4466dfb65a9b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
880
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'db353b96-5d0b-453c-87c6-4466dfb65a9b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:51:44.240 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2020/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:44.241 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:44.242 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:44.242 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:44.243 [print] Beheer PDOK
57
* print operateson
0
04:51:44.244 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:44.246 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:44.247 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:44.248 [print] "true";"true";"true"
76
* eval db.writeln('"db353b96-5d0b-453c-87c6-4466dfb65a9b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"db353b96-5d0b-453c-87c6-4466dfb65a9b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"db353b96-5d0b-453c-87c6-4466dfb65a9b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.93:82]
8c61b066-de2a-4b80-bd20-c878e4edae86
ms: 951
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:44.011 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8c61b066-de2a-4b80-bd20-c878e4edae86'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
935
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8c61b066-de2a-4b80-bd20-c878e4edae86'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:44.956 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2019/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:44.956 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:44.957 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:44.957 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:44.958 [print] Beheer PDOK
57
* print operateson
0
04:51:44.958 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:44.960 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:44.961 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:44.962 [print] "true";"true";"true"
76
* eval db.writeln('"8c61b066-de2a-4b80-bd20-c878e4edae86","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8c61b066-de2a-4b80-bd20-c878e4edae86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8c61b066-de2a-4b80-bd20-c878e4edae86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.94:82]
9c50592e-57be-4d74-91fd-bcaee20bb14e
ms: 907
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:44.157 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c50592e-57be-4d74-91fd-bcaee20bb14e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
885
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c50592e-57be-4d74-91fd-bcaee20bb14e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:45.052 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2022/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:45.053 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:45.054 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:45.054 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:45.055 [print] Beheer PDOK
57
* print operateson
0
04:51:45.055 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:45.058 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:45.059 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
3
04:51:45.063 [print] "true";"true"
76
* eval db.writeln('"9c50592e-57be-4d74-91fd-bcaee20bb14e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c50592e-57be-4d74-91fd-bcaee20bb14e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9c50592e-57be-4d74-91fd-bcaee20bb14e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.95:82]
1601e160-91e8-4091-9aca-10294f819d42
ms: 912
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:44.207 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1601e160-91e8-4091-9aca-10294f819d42'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
893
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1601e160-91e8-4091-9aca-10294f819d42'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:45.110 [print] https://service.pdok.nl/rvo/beschermdegebieden/natura2000/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:45.111 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:45.112 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:45.112 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:45.113 [print] Beheer PDOK
57
* print operateson
0
04:51:45.113 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=280ed37a-b8d2-4ac5-8567-04d84fad3a41#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:45.115 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:45.117 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de interoperable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:45.118 [print] "true";"true";"true"
76
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.96:82]
43bb4581-0720-426f-a771-b7f9ded50fd5
ms: 919
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:44.252 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '43bb4581-0720-426f-a771-b7f9ded50fd5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
902
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '43bb4581-0720-426f-a771-b7f9ded50fd5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:45.163 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2021/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:45.163 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:45.164 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:45.164 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:45.165 [print] Beheer PDOK
57
* print operateson
0
04:51:45.165 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:45.167 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:45.168 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
1
71
* print corConformancePass
0
04:51:45.170 [print] "true";"true"
76
* eval db.writeln('"43bb4581-0720-426f-a771-b7f9ded50fd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"43bb4581-0720-426f-a771-b7f9ded50fd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"43bb4581-0720-426f-a771-b7f9ded50fd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.97:82]
991033b9-73de-4abb-9e5e-269a39152852
ms: 895
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:44.966 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '991033b9-73de-4abb-9e5e-269a39152852'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
880
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '991033b9-73de-4abb-9e5e-269a39152852'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:45.854 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2020/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:45.855 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:45.856 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:45.856 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:45.857 [print] Beheer PDOK
57
* print operateson
0
04:51:45.857 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:45.859 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:45.859 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:45.860 [print] "true";"true"
76
* eval db.writeln('"991033b9-73de-4abb-9e5e-269a39152852","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"991033b9-73de-4abb-9e5e-269a39152852","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"991033b9-73de-4abb-9e5e-269a39152852","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.98:82]
9c4c9bbc-4746-414b-9599-b67db6de1d6d
ms: 893
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:45.068 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c4c9bbc-4746-414b-9599-b67db6de1d6d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
877
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c4c9bbc-4746-414b-9599-b67db6de1d6d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:45.953 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2021/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:45.955 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:45.956 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:45.956 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:45.957 [print] Beheer PDOK
57
* print operateson
0
04:51:45.957 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:45.958 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:45.959 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:45.960 [print] "true";"true";"true"
76
* eval db.writeln('"9c4c9bbc-4746-414b-9599-b67db6de1d6d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c4c9bbc-4746-414b-9599-b67db6de1d6d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9c4c9bbc-4746-414b-9599-b67db6de1d6d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.99:82]
8924a73f-0883-4432-af7e-f6823e098fdc
ms: 883
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:45.122 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8924a73f-0883-4432-af7e-f6823e098fdc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
864
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8924a73f-0883-4432-af7e-f6823e098fdc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:45.995 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2023/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:45.996 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:45.997 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:45.998 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:45.999 [print] Beheer PDOK
57
* print operateson
1
04:51:45.999 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:46.001 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:46.003 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:46.004 [print] "true";"true";"true"
76
* eval db.writeln('"8924a73f-0883-4432-af7e-f6823e098fdc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8924a73f-0883-4432-af7e-f6823e098fdc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8924a73f-0883-4432-af7e-f6823e098fdc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.100:82]
b77a753e-6da8-4df2-874d-4eddad9dd1a4
ms: 895
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:45.174 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b77a753e-6da8-4df2-874d-4eddad9dd1a4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
875
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b77a753e-6da8-4df2-874d-4eddad9dd1a4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:46.060 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2023/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:46.061 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:46.062 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:46.063 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:46.064 [print] Beheer PDOK
57
* print operateson
1
04:51:46.064 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:46.066 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:46.068 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:46.069 [print] "true";"true"
76
* eval db.writeln('"b77a753e-6da8-4df2-874d-4eddad9dd1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b77a753e-6da8-4df2-874d-4eddad9dd1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b77a753e-6da8-4df2-874d-4eddad9dd1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.101:82]
684e1468-ec03-43ee-9f52-94236f187d8d
ms: 898
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:45.865 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '684e1468-ec03-43ee-9f52-94236f187d8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
882
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '684e1468-ec03-43ee-9f52-94236f187d8d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:46.756 [print] https://service.pdok.nl/cbs/statisticalunitsvector/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:46.757 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:46.757 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:46.758 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:46.758 [print] Beheer PDOK
57
* print operateson
0
04:51:46.759 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=10d1153e-778f-4995-9b6c-7c69b196cccb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:46.760 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:46.762 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de interoperable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:46.763 [print] "true";"true";"true"
76
* eval db.writeln('"684e1468-ec03-43ee-9f52-94236f187d8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"684e1468-ec03-43ee-9f52-94236f187d8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"684e1468-ec03-43ee-9f52-94236f187d8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.102:82]
9f051605-bac9-4486-908d-9ada36c7b16e
ms: 901
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:45.963 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9f051605-bac9-4486-908d-9ada36c7b16e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
881
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9f051605-bac9-4486-908d-9ada36c7b16e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:46.856 [print] https://service.pdok.nl/cbs/landuse/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:46.857 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:46.858 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:46.858 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:46.859 [print] Beheer PDOK
57
* print operateson
0
04:51:46.859 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6318009c-7b11-4ab9-9929-735584dfb692#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:46.861 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:46.862 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de interoperable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:46.863 [print] "true";"true";"true"
76
* eval db.writeln('"9f051605-bac9-4486-908d-9ada36c7b16e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"9f051605-bac9-4486-908d-9ada36c7b16e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9f051605-bac9-4486-908d-9ada36c7b16e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.103:82]
f9b731bb-7929-43e2-b77e-286ee2cc5aaa
ms: 945
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:46.009 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f9b731bb-7929-43e2-b77e-286ee2cc5aaa'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
927
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f9b731bb-7929-43e2-b77e-286ee2cc5aaa'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:46.949 [print] https://service.pdok.nl/cbs/landuse/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:46.949 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:46.950 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:46.950 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:46.951 [print] Beheer PDOK
57
* print operateson
0
04:51:46.951 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6318009c-7b11-4ab9-9929-735584dfb692#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:46.952 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:46.953 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:46.954 [print] "true";"true"
76
* eval db.writeln('"f9b731bb-7929-43e2-b77e-286ee2cc5aaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f9b731bb-7929-43e2-b77e-286ee2cc5aaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f9b731bb-7929-43e2-b77e-286ee2cc5aaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.104:82]
282e4136-612a-4d00-baa2-ebd41721d150
ms: 920
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:46.076 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '282e4136-612a-4d00-baa2-ebd41721d150'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
903
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '282e4136-612a-4d00-baa2-ebd41721d150'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:46.988 [print] https://service.pdok.nl/cbs/statisticalunitsvector/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:46.989 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:46.990 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:46.990 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:46.991 [print] Beheer PDOK
57
* print operateson
0
04:51:46.992 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=10d1153e-778f-4995-9b6c-7c69b196cccb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:46.993 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:46.994 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:46.996 [print] "true";"true"
76
* eval db.writeln('"282e4136-612a-4d00-baa2-ebd41721d150","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"282e4136-612a-4d00-baa2-ebd41721d150","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"282e4136-612a-4d00-baa2-ebd41721d150","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.105:82]
923a666c-ee4f-496c-8c85-94d5f81e1f30
ms: 890
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:46.766 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '923a666c-ee4f-496c-8c85-94d5f81e1f30'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
875
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '923a666c-ee4f-496c-8c85-94d5f81e1f30'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:47.650 [print] https://inspire.caris.nl/gs5/am/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:47.651 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:47.652 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:47.652 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:47.653 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:47.653 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:47.654 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:47.655 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:47.656 [print] "true";"true"
76
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.106:82]
c6308500-3439-4840-88cb-7532cabbfcb4
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:46.867 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c6308500-3439-4840-88cb-7532cabbfcb4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c6308500-3439-4840-88cb-7532cabbfcb4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:47.759 [print] https://haleconnect.com/ows/services/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:47.760 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:47.761 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:47.761 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
3
56
* print organisationpath
1
04:51:47.765 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:47.765 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:47.767 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:47.768 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:47.770 [print] true
76
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.107:82]
76342a6d-452e-4e21-b5c0-81ff7b1be90e
ms: 905
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:46.957 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '76342a6d-452e-4e21-b5c0-81ff7b1be90e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
886
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '76342a6d-452e-4e21-b5c0-81ff7b1be90e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:47.853 [print] https://www.broinspireservices.nl/wfs/ossobor-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:47.854 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:47.855 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:47.856 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:47.857 [print] TNO Geologische Dienst Nederland
57
* print operateson
1
04:51:47.858 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=9dd9bf30-36e6-45ae-b368-bdef2720bdde&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:47.859 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:47.861 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:47.862 [print] "true";"true"
76
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.108:82]
745968a3-37af-4406-988e-ec595f58c7fe
ms: 894
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:46.999 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '745968a3-37af-4406-988e-ec595f58c7fe'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
870
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '745968a3-37af-4406-988e-ec595f58c7fe'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:47.879 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:47.880 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:47.882 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:47.882 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:47.883 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
1
04:51:47.884 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:47.886 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:47.887 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:47.889 [print] "true";"true";"true"
76
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
4
Scenario: [1.109:82]
a12ae6ca-b755-4707-884f-95c0d66f431a
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:47.659 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a12ae6ca-b755-4707-884f-95c0d66f431a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
881
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a12ae6ca-b755-4707-884f-95c0d66f431a'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:48.553 [print] https://inspire.caris.nl/gs5/MarineRegion/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:48.554 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:48.555 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:48.556 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:48.557 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:48.557 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f44dac86-2228-412f-8355-e56446ca9933#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:48.559 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:48.560 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:48.561 [print] "true";"true"
76
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.110:82]
2d1860f2-f8ba-457e-bd64-93cdabd69aee
ms: 899
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:47.773 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2d1860f2-f8ba-457e-bd64-93cdabd69aee'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
882
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2d1860f2-f8ba-457e-bd64-93cdabd69aee'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:48.664 [print] https:\/\/inspire.caris.nl\/geoserver\/cz\/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:48.665 [print] ["OGC:WMS","tiff"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:48.666 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:48.666 [print] ["OGC:WMS","tiff"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:48.667 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:48.667 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=424c1d5c-063b-4372-99f5-c85786b4a9d0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:48.669 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:48.670 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:48.671 [print] "true";"true"
76
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.111:82]
55cf16e8-1c04-462c-b78a-e0d28823dd2e
ms: 907
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:47.867 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '55cf16e8-1c04-462c-b78a-e0d28823dd2e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
890
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '55cf16e8-1c04-462c-b78a-e0d28823dd2e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:48.765 [print] https://haleconnect.com/ows/services/org.874.c4108a11-bdbb-4461-8902-423531561a7e_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:48.766 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:48.767 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:48.767 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:48.768 [print] KNMI
57
* print operateson
0
04:51:48.768 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:48.769 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
2
04:51:48.770 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:48.773 [print] true
76
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.112:82]
dd414384-0bcb-4188-86e2-2843e12a579e
ms: 899
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:47.897 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dd414384-0bcb-4188-86e2-2843e12a579e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
881
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dd414384-0bcb-4188-86e2-2843e12a579e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:48.788 [print] https://www.broinspireservices.nl/wfs/ossosgm-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:48.789 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:48.790 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:48.790 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:48.791 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:51:48.792 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=a7fb2234-f7b4-4a03-b282-f10947f42fb1&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:48.794 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:48.795 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:48.796 [print] "true";"true"
76
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.113:82]
8a772a52-d659-47b3-a131-82398fb78664
ms: 924
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:48.565 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8a772a52-d659-47b3-a131-82398fb78664'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
906
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8a772a52-d659-47b3-a131-82398fb78664'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:49.481 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:49.481 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:49.482 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:49.483 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:49.484 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:49.484 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:49.486 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:49.487 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:49.488 [print] true
76
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.114:82]
17db4dd9-462f-4b9e-b14f-0004cacdafbb
ms: 902
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:48.675 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '17db4dd9-462f-4b9e-b14f-0004cacdafbb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
885
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '17db4dd9-462f-4b9e-b14f-0004cacdafbb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:49.569 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:49.570 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:49.571 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:49.571 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:49.572 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:49.573 [print] https://haleconnect.com/services/bsp/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:49.575 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:49.576 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:49.577 [print] true
76
* eval db.writeln('"17db4dd9-462f-4b9e-b14f-0004cacdafbb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"17db4dd9-462f-4b9e-b14f-0004cacdafbb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"17db4dd9-462f-4b9e-b14f-0004cacdafbb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.115:82]
f2d2cd9d-7410-485a-95e0-c1b885243eaf
ms: 922
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:48.777 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f2d2cd9d-7410-485a-95e0-c1b885243eaf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
897
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2d2cd9d-7410-485a-95e0-c1b885243eaf'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:49.684 [print] https://inspire.caris.nl/geoserver/eez/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:49.685 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:49.686 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:49.686 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:49.687 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:49.688 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3296af93-cc8c-4a24-9356-1f68a57db712#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:49.690 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:49.691 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:49.692 [print] "true";"true"
76
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
6
77
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.116:82]
b145a28d-70fd-4a8e-9750-3865bbcc5bea
ms: 944
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:48.799 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b145a28d-70fd-4a8e-9750-3865bbcc5bea'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
926
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b145a28d-70fd-4a8e-9750-3865bbcc5bea'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:49.735 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:49.736 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:49.737 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:49.737 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:49.738 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:49.738 [print] https://haleconnect.com/services/bsp/org.874.1fe64439-81bd-4adb-8a64-957200a4a48a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:49.740 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:49.742 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:49.743 [print] true
76
* eval db.writeln('"b145a28d-70fd-4a8e-9750-3865bbcc5bea","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b145a28d-70fd-4a8e-9750-3865bbcc5bea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b145a28d-70fd-4a8e-9750-3865bbcc5bea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.117:82]
ca71572f-a498-4ca6-aa60-d4c4c4d59e2e
ms: 887
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:49.492 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ca71572f-a498-4ca6-aa60-d4c4c4d59e2e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
870
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ca71572f-a498-4ca6-aa60-d4c4c4d59e2e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:50.371 [print] https://inspire.caris.nl/geoserver/gnwms/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:50.373 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:50.373 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:50.374 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:50.374 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:50.375 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1c3450ea-e161-4f50-ad0e-97a36cdd1308#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:50.376 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:50.377 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:50.378 [print] "true";"true"
76
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.118:82]
b7880739-a701-4cc0-bb32-2bba61fa8924
ms: 867
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:49.580 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b7880739-a701-4cc0-bb32-2bba61fa8924'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
852
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b7880739-a701-4cc0-bb32-2bba61fa8924'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:50.441 [print] https://acc.gdngeoservices.nl/geoserver/aardwarmtepotentiekaart/ows?request=GetCapabilities&service=WMS&version=1.3.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:50.442 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:50.443 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:50.443 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:50.444 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:51:50.444 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=11a292bd-9022-4a9f-b1bf-02f5c89ad74a&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:50.446 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:50.447 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:50.447 [print] "true";"false"
76
* eval db.writeln('"b7880739-a701-4cc0-bb32-2bba61fa8924","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b7880739-a701-4cc0-bb32-2bba61fa8924","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b7880739-a701-4cc0-bb32-2bba61fa8924","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.119:82]
060d1139-c371-4c1e-9890-55999adfa4f9
ms: 906
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:49.703 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '060d1139-c371-4c1e-9890-55999adfa4f9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
889
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '060d1139-c371-4c1e-9890-55999adfa4f9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:50.601 [print] https://inspire.caris.nl/geoserver/boundary/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:50.602 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:50.603 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:50.603 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:50.605 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:50.605 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dc528841-cb0f-4962-83bc-5c84ca6c4926#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:50.606 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:50.607 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:50.608 [print] "true";"true"
76
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.120:82]
70bf4086-b557-4803-96d3-6dc397a5b135
ms: 910
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:49.746 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '70bf4086-b557-4803-96d3-6dc397a5b135'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
894
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '70bf4086-b557-4803-96d3-6dc397a5b135'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:50.648 [print] https://inspire.caris.nl/geoserver/baseline/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:50.649 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:50.650 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:50.650 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:50.652 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:51:50.652 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:50.654 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:50.655 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:50.656 [print] "true";"true"
76
* eval db.writeln('"70bf4086-b557-4803-96d3-6dc397a5b135","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"70bf4086-b557-4803-96d3-6dc397a5b135","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"70bf4086-b557-4803-96d3-6dc397a5b135","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.121:82]
bd14098b-44e6-47e5-959d-f40dda65da5a
ms: 888
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:50.382 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bd14098b-44e6-47e5-959d-f40dda65da5a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
873
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bd14098b-44e6-47e5-959d-f40dda65da5a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:51.264 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:51.264 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:51.265 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:51.265 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:51.266 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:51.266 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:51.267 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:51.269 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:51.270 [print] "false";"false"
76
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.122:82]
1009c2a4-4dba-49a5-b643-914ba8b80b52
ms: 896
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:50.450 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1009c2a4-4dba-49a5-b643-914ba8b80b52'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
881
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1009c2a4-4dba-49a5-b643-914ba8b80b52'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:51.339 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:51.340 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:51.341 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:51.341 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:51.342 [print] KNMI
57
* print operateson
0
04:51:51.342 [print] https://haleconnect.com/services/bsp/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:51.343 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:51.344 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:51.345 [print] true
76
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.123:82]
66b293b0-e9d4-4d6f-9f37-30d10af1d7db
ms: 888
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:50.612 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '66b293b0-e9d4-4d6f-9f37-30d10af1d7db'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
874
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '66b293b0-e9d4-4d6f-9f37-30d10af1d7db'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:51.493 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2021/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:51.494 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:51.495 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:51.495 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:51.496 [print] Beheer PDOK
57
* print operateson
0
04:51:51.496 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:51.498 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:51.499 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:51.499 [print] "true";"true";"true"
76
* eval db.writeln('"66b293b0-e9d4-4d6f-9f37-30d10af1d7db","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"66b293b0-e9d4-4d6f-9f37-30d10af1d7db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"66b293b0-e9d4-4d6f-9f37-30d10af1d7db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.124:82]
d0b1a576-d1c5-47b4-972f-353f37eb1f8d
ms: 872
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:50.659 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd0b1a576-d1c5-47b4-972f-353f37eb1f8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
858
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd0b1a576-d1c5-47b4-972f-353f37eb1f8d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:51.525 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:51.526 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:51.526 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:51.527 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:51.527 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:51:51.528 [print] https://haleconnect.com/services/bsp/org.874.c9827525-5ea6-47bc-aa4a-3fa9665f0327/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:51.529 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:51.530 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:51.531 [print] true
76
* eval db.writeln('"d0b1a576-d1c5-47b4-972f-353f37eb1f8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d0b1a576-d1c5-47b4-972f-353f37eb1f8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d0b1a576-d1c5-47b4-972f-353f37eb1f8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.125:82]
f0eb64f9-8888-42e1-9550-bf91c32da4bc
ms: 886
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:51.274 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f0eb64f9-8888-42e1-9550-bf91c32da4bc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
872
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f0eb64f9-8888-42e1-9550-bf91c32da4bc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:52.154 [print] https://data.rivm.nl/geo/inspire/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:52.155 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:52.156 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:52.156 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:52.157 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:51:52.157 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:52.158 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:52.159 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:52.160 [print] "false";"false"
76
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.126:82]
1b2e3afd-e5dd-4d05-aeee-a75091a76beb
ms: 905
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:51.349 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1b2e3afd-e5dd-4d05-aeee-a75091a76beb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1b2e3afd-e5dd-4d05-aeee-a75091a76beb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:52.245 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2016/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:52.246 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:52.246 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:52.246 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
1
04:51:52.249 [print] Beheer PDOK
57
* print operateson
1
04:51:52.249 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:52.251 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:52.253 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:52.254 [print] "true";"true"
76
* eval db.writeln('"1b2e3afd-e5dd-4d05-aeee-a75091a76beb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1b2e3afd-e5dd-4d05-aeee-a75091a76beb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1b2e3afd-e5dd-4d05-aeee-a75091a76beb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.127:82]
b39970a9-e1d7-4a20-9fbd-57661f6d6849
ms: 929
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:51.503 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b39970a9-e1d7-4a20-9fbd-57661f6d6849'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
914
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b39970a9-e1d7-4a20-9fbd-57661f6d6849'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:52.425 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2018/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:52.426 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:52.427 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:52.427 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:52.428 [print] Beheer PDOK
57
* print operateson
0
04:51:52.428 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:52.429 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:52.430 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:52.431 [print] "true";"true";"true"
76
* eval db.writeln('"b39970a9-e1d7-4a20-9fbd-57661f6d6849","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b39970a9-e1d7-4a20-9fbd-57661f6d6849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b39970a9-e1d7-4a20-9fbd-57661f6d6849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.128:82]
f874407b-25f9-4c1b-abe6-363467683bb1
ms: 965
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:51.534 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f874407b-25f9-4c1b-abe6-363467683bb1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
951
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f874407b-25f9-4c1b-abe6-363467683bb1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:52.493 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2017/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:52.494 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:52.495 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:52.495 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:52.496 [print] Beheer PDOK
57
* print operateson
0
04:51:52.496 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:52.497 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:52.498 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:52.499 [print] "true";"true"
76
* eval db.writeln('"f874407b-25f9-4c1b-abe6-363467683bb1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f874407b-25f9-4c1b-abe6-363467683bb1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f874407b-25f9-4c1b-abe6-363467683bb1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.129:82]
150e3a18-44ed-43bd-b0fd-70ff7a3e6906
ms: 908
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:52.163 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '150e3a18-44ed-43bd-b0fd-70ff7a3e6906'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
895
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '150e3a18-44ed-43bd-b0fd-70ff7a3e6906'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:53.066 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2016/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:53.067 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:53.067 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:53.068 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:53.068 [print] Beheer PDOK
57
* print operateson
0
04:51:53.068 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:53.070 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:53.071 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:53.071 [print] "true";"true";"true"
76
* eval db.writeln('"150e3a18-44ed-43bd-b0fd-70ff7a3e6906","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"150e3a18-44ed-43bd-b0fd-70ff7a3e6906","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"150e3a18-44ed-43bd-b0fd-70ff7a3e6906","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.130:82]
8c280cce-ef1b-49b6-93dc-6cee38956101
ms: 906
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:52.258 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8c280cce-ef1b-49b6-93dc-6cee38956101'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8c280cce-ef1b-49b6-93dc-6cee38956101'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:53.158 [print] https://service.pdok.nl/cbs/gebiedsindelingen/2017/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:53.159 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:53.159 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:53.159 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:53.160 [print] Beheer PDOK
57
* print operateson
0
04:51:53.160 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:53.162 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:53.163 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:53.163 [print] "true";"true";"true"
76
* eval db.writeln('"8c280cce-ef1b-49b6-93dc-6cee38956101","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8c280cce-ef1b-49b6-93dc-6cee38956101","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8c280cce-ef1b-49b6-93dc-6cee38956101","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.131:82]
823c5f01-5d11-481b-aa5f-e191d129365f
ms: 900
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:52.434 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '823c5f01-5d11-481b-aa5f-e191d129365f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
887
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '823c5f01-5d11-481b-aa5f-e191d129365f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:53.329 [print] https://service.pdok.nl/kadaster/gn/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:53.329 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:53.330 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:53.330 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:53.331 [print] Beheer PDOK
57
* print operateson
0
04:51:53.331 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:53.332 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:53.333 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:53.334 [print] "true";"true"
76
* eval db.writeln('"823c5f01-5d11-481b-aa5f-e191d129365f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"823c5f01-5d11-481b-aa5f-e191d129365f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"823c5f01-5d11-481b-aa5f-e191d129365f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.132:82]
c78a99eb-9ba3-4307-a21b-2a64ad5da039
ms: 904
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:52.502 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c78a99eb-9ba3-4307-a21b-2a64ad5da039'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
885
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c78a99eb-9ba3-4307-a21b-2a64ad5da039'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:53.397 [print] https://service.pdok.nl/rvo/mosselzaadinvanginstallaties/wms/v1_0?service=wms&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:53.398 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:53.399 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:53.399 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:53.401 [print] Beheer PDOK
57
* print operateson
0
04:51:53.401 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=a04afee4-47d5-45b7-b7a0-a6f86106af11#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:53.403 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:53.404 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:53.406 [print] "true";"true"
76
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.133:82]
a57c1e86-becb-4e3f-b0ad-6d02cea5583d
ms: 892
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:53.075 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a57c1e86-becb-4e3f-b0ad-6d02cea5583d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
875
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a57c1e86-becb-4e3f-b0ad-6d02cea5583d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:53.960 [print] https://service.pdok.nl/provincies/zwemwaterkwaliteit-provinciaal-rijkswateren/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:53.960 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:53.961 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:53.962 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:53.962 [print] Beheer PDOK
57
* print operateson
0
04:51:53.963 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=df5ee213-e1bd-433b-80f7-4ea20f493ca8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:53.964 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:53.965 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:53.967 [print] "true";"true"
76
* eval db.writeln('"a57c1e86-becb-4e3f-b0ad-6d02cea5583d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a57c1e86-becb-4e3f-b0ad-6d02cea5583d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a57c1e86-becb-4e3f-b0ad-6d02cea5583d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.134:82]
ecd65d6f-0249-4c60-85b9-5fd87fbe60c8
ms: 917
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:53.166 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ecd65d6f-0249-4c60-85b9-5fd87fbe60c8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
901
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ecd65d6f-0249-4c60-85b9-5fd87fbe60c8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:54.076 [print] https://service.pdok.nl/cbs/wijkenbuurten/2022/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:54.077 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:54.078 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:54.078 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:54.079 [print] Beheer PDOK
57
* print operateson
0
04:51:54.079 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=70c52fd8-6b2e-42aa-873a-742711903243#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:54.081 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:54.082 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:54.083 [print] "true";"true"
76
* eval db.writeln('"ecd65d6f-0249-4c60-85b9-5fd87fbe60c8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"ecd65d6f-0249-4c60-85b9-5fd87fbe60c8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ecd65d6f-0249-4c60-85b9-5fd87fbe60c8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.135:82]
f57bdee7-4027-4aa2-8312-4051b854be3c
ms: 902
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:53.365 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
1
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
1
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f57bdee7-4027-4aa2-8312-4051b854be3c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
884
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f57bdee7-4027-4aa2-8312-4051b854be3c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:54.259 [print] https://service.pdok.nl/rvo/schelpdierpercelen/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:54.260 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:54.261 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:54.261 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:54.262 [print] Beheer PDOK
57
* print operateson
0
04:51:54.262 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b4e95a-12d7-4c74-933c-cb267cfe0bcf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:54.264 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:54.265 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:54.266 [print] "true";"true"
76
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.136:82]
e9ba7d7f-6cd1-4271-bce4-56432924b338
ms: 915
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:53.410 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e9ba7d7f-6cd1-4271-bce4-56432924b338'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
899
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e9ba7d7f-6cd1-4271-bce4-56432924b338'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:54.318 [print] https://service.pdok.nl/rvo/mosselzaadinvanginstallaties/wfs/v1_0?service=wfs&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:54.319 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:54.319 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:54.320 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:54.320 [print] Beheer PDOK
57
* print operateson
0
04:51:54.321 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a04afee4-47d5-45b7-b7a0-a6f86106af11#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:54.322 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:54.323 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:54.324 [print] "true";"true"
76
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.137:82]
3d01c1ca-973c-4652-baa5-39458bb9e181
ms: 940
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:53.970 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3d01c1ca-973c-4652-baa5-39458bb9e181'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
927
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3d01c1ca-973c-4652-baa5-39458bb9e181'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:54.905 [print] https://service.pdok.nl/rvo/schelpdierpercelen/wms/v2_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:54.906 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:54.906 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:54.906 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:54.907 [print] Beheer PDOK
57
* print operateson
0
04:51:54.907 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe0e1e5f-512f-4bb1-bbf8-4028d3dfa24f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:54.909 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:54.909 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:54.910 [print] "true";"true"
76
* eval db.writeln('"3d01c1ca-973c-4652-baa5-39458bb9e181","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3d01c1ca-973c-4652-baa5-39458bb9e181","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3d01c1ca-973c-4652-baa5-39458bb9e181","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.138:82]
6b608d4e-5628-4d59-97fc-0322c57357b2
ms: 889
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:54.087 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6b608d4e-5628-4d59-97fc-0322c57357b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6b608d4e-5628-4d59-97fc-0322c57357b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:54.971 [print] https://service.pdok.nl/rvo/schelpdierpercelen/wfs/v2_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:54.972 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:54.973 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:54.973 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:54.973 [print] Beheer PDOK
57
* print operateson
0
04:51:54.973 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe0e1e5f-512f-4bb1-bbf8-4028d3dfa24f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:54.975 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:54.975 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:54.976 [print] "true";"true"
76
* eval db.writeln('"6b608d4e-5628-4d59-97fc-0322c57357b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6b608d4e-5628-4d59-97fc-0322c57357b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6b608d4e-5628-4d59-97fc-0322c57357b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.139:82]
3e6e285e-f0f0-4bb8-b14f-a9d1b9ea62a7
ms: 899
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:54.269 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3e6e285e-f0f0-4bb8-b14f-a9d1b9ea62a7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3e6e285e-f0f0-4bb8-b14f-a9d1b9ea62a7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:55.160 [print] https://service.pdok.nl/rvo/vogelrichtlijnsoorten/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:55.161 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:55.162 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:55.162 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:55.163 [print] Beheer PDOK
57
* print operateson
1
04:51:55.164 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:55.166 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:55.167 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:55.168 [print] "true";"true"
76
* eval db.writeln('"3e6e285e-f0f0-4bb8-b14f-a9d1b9ea62a7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3e6e285e-f0f0-4bb8-b14f-a9d1b9ea62a7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3e6e285e-f0f0-4bb8-b14f-a9d1b9ea62a7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.140:82]
ee9e7a1c-b04a-45a9-92a2-99b2ef508529
ms: 886
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:54.327 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ee9e7a1c-b04a-45a9-92a2-99b2ef508529'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
872
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ee9e7a1c-b04a-45a9-92a2-99b2ef508529'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:55.207 [print] https://service.pdok.nl/rvo/vogelrichtlijnsoorten/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:55.207 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:55.208 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:55.208 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:55.209 [print] Beheer PDOK
57
* print operateson
0
04:51:55.209 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:55.211 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:55.212 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:55.213 [print] "true";"true";"true"
76
* eval db.writeln('"ee9e7a1c-b04a-45a9-92a2-99b2ef508529","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ee9e7a1c-b04a-45a9-92a2-99b2ef508529","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ee9e7a1c-b04a-45a9-92a2-99b2ef508529","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.141:82]
027e3f15-3b58-4570-97bb-779ce3ca947e
ms: 899
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:54.917 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '027e3f15-3b58-4570-97bb-779ce3ca947e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
886
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '027e3f15-3b58-4570-97bb-779ce3ca947e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:55.810 [print] https://service.pdok.nl/cbs/wijkenbuurten/2019/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:55.811 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:55.812 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:55.812 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:55.812 [print] Beheer PDOK
57
* print operateson
0
04:51:55.813 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:55.814 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:55.815 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:55.815 [print] "true";"true"
76
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.142:82]
3ac5737f-55ed-455d-8350-44af11b67fc3
ms: 918
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:54.979 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3ac5737f-55ed-455d-8350-44af11b67fc3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
903
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3ac5737f-55ed-455d-8350-44af11b67fc3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:51:55.890 [print] https://service.pdok.nl/cbs/wijkenbuurten/2019/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:55.891 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:55.892 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:55.892 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:55.893 [print] Beheer PDOK
57
* print operateson
0
04:51:55.894 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:55.895 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:55.896 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:55.897 [print] "true";"true"
76
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.143:82]
caeb52a3-cbaa-4e9b-a23e-d4dc0335b506
ms: 938
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:55.174 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'caeb52a3-cbaa-4e9b-a23e-d4dc0335b506'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
922
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'caeb52a3-cbaa-4e9b-a23e-d4dc0335b506'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:56.104 [print] https://service.pdok.nl/cbs/wijkenbuurten/2020/wfs/v2_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:56.104 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:51:56.105 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:56.105 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:56.106 [print] Beheer PDOK
57
* print operateson
0
04:51:56.106 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:56.109 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:56.110 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:51:56.111 [print] "true";"true"
76
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.144:82]
60dc9632-50c8-40b1-ac63-cd91b85352d2
ms: 959
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:55.216 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '60dc9632-50c8-40b1-ac63-cd91b85352d2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
940
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '60dc9632-50c8-40b1-ac63-cd91b85352d2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:51:56.165 [print] https://service.pdok.nl/cbs/wijkenbuurten/2021/wfs/v2_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:56.166 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:56.167 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:56.168 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:56.169 [print] Beheer PDOK
57
* print operateson
0
04:51:56.169 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:56.171 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:56.172 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:56.175 [print] "true";"true";"true"
76
* eval db.writeln('"60dc9632-50c8-40b1-ac63-cd91b85352d2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"60dc9632-50c8-40b1-ac63-cd91b85352d2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"60dc9632-50c8-40b1-ac63-cd91b85352d2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.145:82]
fa09603b-d799-4ede-8243-1eb4f654ae75
ms: 925
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:55.819 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fa09603b-d799-4ede-8243-1eb4f654ae75'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
909
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fa09603b-d799-4ede-8243-1eb4f654ae75'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
3
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:56.738 [print] https://service.pdok.nl/cbs/wijkenbuurten/2022/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:56.739 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:56.739 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:56.740 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:56.740 [print] Beheer PDOK
57
* print operateson
0
04:51:56.741 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=70c52fd8-6b2e-42aa-873a-742711903243#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:56.742 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:56.743 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:56.743 [print] "true";"true";"true"
76
* eval db.writeln('"fa09603b-d799-4ede-8243-1eb4f654ae75","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fa09603b-d799-4ede-8243-1eb4f654ae75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fa09603b-d799-4ede-8243-1eb4f654ae75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.146:82]
3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:55.901 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
889
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:56.798 [print] https://service.pdok.nl/cbs/wijkenbuurten/2020/wms/v2_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:56.799 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:56.799 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:56.799 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:56.800 [print] Beheer PDOK
57
* print operateson
0
04:51:56.800 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:56.801 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:56.802 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:56.803 [print] "true";"true"
76
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.147:82]
e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5
ms: 895
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:56.115 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:57.002 [print] https://service.pdok.nl/cbs/wijkenbuurten/2021/wms/v2_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
1
04:51:57.003 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:57.005 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:57.005 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:57.006 [print] Beheer PDOK
57
* print operateson
0
04:51:57.006 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:57.008 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:57.008 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:57.009 [print] "true";"true"
76
* eval db.writeln('"e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.148:82]
710187ec-2caf-4b24-9921-ca80ec7e5015
ms: 900
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:56.178 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '710187ec-2caf-4b24-9921-ca80ec7e5015'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
884
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '710187ec-2caf-4b24-9921-ca80ec7e5015'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:57.070 [print] https://service.pdok.nl/rvo/vogelrichtlijngebieds/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:57.072 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:57.072 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:57.073 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:57.074 [print] Beheer PDOK
57
* print operateson
0
04:51:57.074 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cbeaebc3-815a-48af-a978-0e16892865fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:57.075 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:57.076 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:57.077 [print] "true";"true";"true"
76
* eval db.writeln('"710187ec-2caf-4b24-9921-ca80ec7e5015","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"710187ec-2caf-4b24-9921-ca80ec7e5015","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"710187ec-2caf-4b24-9921-ca80ec7e5015","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.149:82]
6aa19280-e67c-4184-b916-6d47e9414bbc
ms: 894
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:56.747 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6aa19280-e67c-4184-b916-6d47e9414bbc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
877
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6aa19280-e67c-4184-b916-6d47e9414bbc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
4
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:57.635 [print] https://service.pdok.nl/rvo/vogelrichtlijngebieds/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:57.636 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:57.637 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:57.637 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:57.638 [print] Beheer PDOK
57
* print operateson
0
04:51:57.638 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cbeaebc3-815a-48af-a978-0e16892865fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:57.639 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:57.640 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:57.640 [print] "true";"true"
76
* eval db.writeln('"6aa19280-e67c-4184-b916-6d47e9414bbc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6aa19280-e67c-4184-b916-6d47e9414bbc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6aa19280-e67c-4184-b916-6d47e9414bbc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.150:82]
598c4109-21d2-4a6c-b083-9975a6736849
ms: 926
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:56.808 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '598c4109-21d2-4a6c-b083-9975a6736849'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '598c4109-21d2-4a6c-b083-9975a6736849'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
26
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:57.727 [print] https:\/\/service.pdok.nl\/rws\/nwbvaarwegen\/wms\/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:57.728 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:57.728 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:57.729 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:57.730 [print] Beheer PDOK
57
* print operateson
0
04:51:57.730 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=00d8c7c8-98ff-4b06-8f53-b44216e6e75c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:57.732 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:57.733 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:57.734 [print] "true";"true"
76
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.151:82]
94f241c2-43a2-42c3-8e9e-71976605aa0e
ms: 919
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:57.012 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '94f241c2-43a2-42c3-8e9e-71976605aa0e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '94f241c2-43a2-42c3-8e9e-71976605aa0e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:57.919 [print] https://service.pdok.nl/brt/top10nl/wms/v1_0?service=wms&request=getCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:57.920 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:57.921 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:57.921 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:51:57.924 [print] Beheer PDOK
57
* print operateson
0
04:51:57.924 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=29d5310f-dd0d-45ba-abad-b4ffc6b8785f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:57.927 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:57.928 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
2
04:51:57.931 [print] "true";"true"
76
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.152:82]
f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8
ms: 917
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:57.081 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
903
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:57.993 [print] https://service.pdok.nl/rws/nwbwegen/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:57.994 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:57.994 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:57.994 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:57.995 [print] Beheer PDOK
57
* print operateson
0
04:51:57.995 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:57.997 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:57.997 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:57.998 [print] "true";"true"
76
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.153:82]
a301ddc7-c26f-42d8-b367-509ae5ae47d0
ms: 898
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:57.643 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a301ddc7-c26f-42d8-b367-509ae5ae47d0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
882
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a301ddc7-c26f-42d8-b367-509ae5ae47d0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:58.535 [print] https:\/\/service.pdok.nl\/hwh\/luchtfotorgb\/wms\/v1_0?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:58.536 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:58.536 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:58.537 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:58.537 [print] Beheer PDOK
57
* print operateson
0
04:51:58.538 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=74aca3eb-c38b-4214-9537-e0abc69e11b5#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5b274449-b6c2-4672-a32f-e0bd40975a53#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=df15af6e-0d21-4437-a69f-802be3479bba#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=64ff8561-5c56-4cc1-ae0e-94366fb70b7e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4e2bb25e-a5a9-43a7-986a-40e7aea32e38#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:58.539 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:58.540 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:58.541 [print] "true";"true"
76
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.154:82]
3d143d7a-7599-4cda-bcc5-619b6201c47b
ms: 906
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:57.739 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3d143d7a-7599-4cda-bcc5-619b6201c47b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
886
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3d143d7a-7599-4cda-bcc5-619b6201c47b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:58.636 [print] https://service.pdok.nl/provincies/begrenzingen-vergunde-ontgrondingsgebieden-zand-grindwinning/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:58.638 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:58.639 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:58.639 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:58.640 [print] Beheer PDOK
57
* print operateson
0
04:51:58.641 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58e7dc38-a498-4852-b4ef-908f5baa9056#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:58.642 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:58.644 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:58.645 [print] "true";"true"
76
* eval db.writeln('"3d143d7a-7599-4cda-bcc5-619b6201c47b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3d143d7a-7599-4cda-bcc5-619b6201c47b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3d143d7a-7599-4cda-bcc5-619b6201c47b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.155:82]
d7a395a2-8673-4794-a5a6-fed6492cd580
ms: 887
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:57.935 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd7a395a2-8673-4794-a5a6-fed6492cd580'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
868
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd7a395a2-8673-4794-a5a6-fed6492cd580'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:58.812 [print] https:\/\/service.pdok.nl\/hwh\/luchtfotocir\/wms\/v1_0?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:58.813 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:58.815 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:58.815 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:58.816 [print] Beheer PDOK
57
* print operateson
0
04:51:58.817 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1be28290-55fa-4486-b9d3-b9d147117863#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=7c24ea89-074e-4c4f-91e3-d38e813e9cb6#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9ed6b8ed-254a-4745-a09a-3b57137d1b69#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4cfb1469-a152-4ba6-8fe9-4b627acd7ee0#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:58.819 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:58.820 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:58.822 [print] "true";"true"
76
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.156:82]
008d85d1-460d-46f6-9af4-98afdedbc4dc
ms: 917
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:58.002 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
1
13
* eval db.ensureDirectory(outputpath)
7
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '008d85d1-460d-46f6-9af4-98afdedbc4dc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '008d85d1-460d-46f6-9af4-98afdedbc4dc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:58.910 [print] https://service.pdok.nl/cbs/pd/wfs/v1_0?service=WFS&request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:58.911 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:58.913 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:58.913 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:58.914 [print] Beheer PDOK
57
* print operateson
0
04:51:58.914 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:58.916 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs .";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:58.917 [print] "Deze service voldoet aan specificaties voor spatial data services";"De service voldoet aan de requirements van de interoperable conformance class.";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:58.918 [print] "true";"true";"true"
76
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.157:82]
171b28f6-7ee7-46f9-b3b3-06d0baaa33db
ms: 899
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:58.545 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '171b28f6-7ee7-46f9-b3b3-06d0baaa33db'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '171b28f6-7ee7-46f9-b3b3-06d0baaa33db'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:59.433 [print] https:\/\/service.pdok.nl\/cbs\/pd\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:51:59.434 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:51:59.435 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:59.436 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:59.437 [print] Beheer PDOK
57
* print operateson
1
04:51:59.437 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:51:59.440 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:51:59.441 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:59.443 [print] "true";"true"
76
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.158:82]
8a1d1e07-ad95-40a4-adb1-23a3504543a4
ms: 884
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:58.648 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8a1d1e07-ad95-40a4-adb1-23a3504543a4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
870
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8a1d1e07-ad95-40a4-adb1-23a3504543a4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:59.527 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2021/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:59.528 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:59.529 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:59.529 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:59.529 [print] Beheer PDOK
57
* print operateson
0
04:51:59.530 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:59.531 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:59.532 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:59.533 [print] "true";"true"
76
* eval db.writeln('"8a1d1e07-ad95-40a4-adb1-23a3504543a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8a1d1e07-ad95-40a4-adb1-23a3504543a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8a1d1e07-ad95-40a4-adb1-23a3504543a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.159:82]
78e71ad9-4f1f-4eab-a82a-99127e50e5a1
ms: 881
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:58.825 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '78e71ad9-4f1f-4eab-a82a-99127e50e5a1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
867
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '78e71ad9-4f1f-4eab-a82a-99127e50e5a1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:51:59.701 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2020/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:59.702 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:59.703 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:59.703 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:59.704 [print] Beheer PDOK
57
* print operateson
0
04:51:59.704 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:59.705 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:59.706 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:59.707 [print] "true";"true"
76
* eval db.writeln('"78e71ad9-4f1f-4eab-a82a-99127e50e5a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"78e71ad9-4f1f-4eab-a82a-99127e50e5a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"78e71ad9-4f1f-4eab-a82a-99127e50e5a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.160:82]
62e11629-7fdc-4831-bf27-bc179244db43
ms: 896
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:58.922 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '62e11629-7fdc-4831-bf27-bc179244db43'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
882
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '62e11629-7fdc-4831-bf27-bc179244db43'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:51:59.813 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2021/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:51:59.813 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:51:59.814 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:51:59.814 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:51:59.815 [print] Beheer PDOK
57
* print operateson
0
04:51:59.815 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:51:59.816 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:51:59.817 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:51:59.818 [print] "true";"true";"true"
76
* eval db.writeln('"62e11629-7fdc-4831-bf27-bc179244db43","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"62e11629-7fdc-4831-bf27-bc179244db43","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"62e11629-7fdc-4831-bf27-bc179244db43","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.161:82]
add7e618-78e7-4189-abc8-a64becee7a60
ms: 896
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:59.448 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'add7e618-78e7-4189-abc8-a64becee7a60'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'add7e618-78e7-4189-abc8-a64becee7a60'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:00.339 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2018/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:00.340 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:00.340 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:00.340 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:00.341 [print] Beheer PDOK
57
* print operateson
0
04:52:00.341 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:00.343 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:00.343 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:00.344 [print] "true";"true"
76
* eval db.writeln('"add7e618-78e7-4189-abc8-a64becee7a60","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"add7e618-78e7-4189-abc8-a64becee7a60","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"add7e618-78e7-4189-abc8-a64becee7a60","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.162:82]
4bb1a3a9-22a2-47b0-85e9-72b913c07ecb
ms: 898
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:59.536 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4bb1a3a9-22a2-47b0-85e9-72b913c07ecb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
885
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4bb1a3a9-22a2-47b0-85e9-72b913c07ecb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:00.429 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2019/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:00.430 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:00.431 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:00.431 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:00.431 [print] Beheer PDOK
57
* print operateson
0
04:52:00.431 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:00.433 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:00.433 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:00.434 [print] "true";"true"
76
* eval db.writeln('"4bb1a3a9-22a2-47b0-85e9-72b913c07ecb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4bb1a3a9-22a2-47b0-85e9-72b913c07ecb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4bb1a3a9-22a2-47b0-85e9-72b913c07ecb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.163:82]
85c467c5-aff0-4509-9825-4965d9e962b9
ms: 940
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:59.710 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '85c467c5-aff0-4509-9825-4965d9e962b9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
926
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '85c467c5-aff0-4509-9825-4965d9e962b9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:00.644 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2012/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:00.645 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:00.646 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:00.646 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:00.647 [print] Beheer PDOK
57
* print operateson
0
04:52:00.647 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:00.648 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:00.649 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:00.650 [print] "true";"true";"true"
76
* eval db.writeln('"85c467c5-aff0-4509-9825-4965d9e962b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"85c467c5-aff0-4509-9825-4965d9e962b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"85c467c5-aff0-4509-9825-4965d9e962b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.164:82]
2c606ae3-0290-4369-8991-c6448111ff31
ms: 896
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:51:59.821 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2c606ae3-0290-4369-8991-c6448111ff31'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2c606ae3-0290-4369-8991-c6448111ff31'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:00.712 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2011/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:00.712 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:00.713 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:00.713 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:00.714 [print] Beheer PDOK
57
* print operateson
0
04:52:00.714 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:00.715 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:00.716 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:00.717 [print] "true";"true";"true"
76
* eval db.writeln('"2c606ae3-0290-4369-8991-c6448111ff31","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2c606ae3-0290-4369-8991-c6448111ff31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2c606ae3-0290-4369-8991-c6448111ff31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.165:82]
2148f2fa-ab3c-44df-b66f-ac42ce6f1eed
ms: 914
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:00.347 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2148f2fa-ab3c-44df-b66f-ac42ce6f1eed'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
901
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2148f2fa-ab3c-44df-b66f-ac42ce6f1eed'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:01.257 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2011/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:01.257 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:01.258 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:01.258 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:01.259 [print] Beheer PDOK
57
* print operateson
0
04:52:01.259 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:01.260 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:01.261 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:01.261 [print] "true";"true"
76
* eval db.writeln('"2148f2fa-ab3c-44df-b66f-ac42ce6f1eed","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2148f2fa-ab3c-44df-b66f-ac42ce6f1eed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2148f2fa-ab3c-44df-b66f-ac42ce6f1eed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.166:82]
d9aeb5c3-ff2a-441b-bdfa-15c6c2c54a3b
ms: 870
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:00.437 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd9aeb5c3-ff2a-441b-bdfa-15c6c2c54a3b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
855
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd9aeb5c3-ff2a-441b-bdfa-15c6c2c54a3b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:01.300 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2012/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:01.301 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:01.302 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:01.302 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:01.303 [print] Beheer PDOK
57
* print operateson
0
04:52:01.303 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:01.305 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:01.306 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:01.307 [print] "true";"true"
76
* eval db.writeln('"d9aeb5c3-ff2a-441b-bdfa-15c6c2c54a3b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d9aeb5c3-ff2a-441b-bdfa-15c6c2c54a3b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"d9aeb5c3-ff2a-441b-bdfa-15c6c2c54a3b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.167:82]
ca3f849f-b303-4757-aa30-e5cdd692e07a
ms: 889
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:00.652 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ca3f849f-b303-4757-aa30-e5cdd692e07a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
875
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ca3f849f-b303-4757-aa30-e5cdd692e07a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:52:01.536 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2017/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:01.537 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:01.538 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:01.538 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:01.538 [print] Beheer PDOK
57
* print operateson
0
04:52:01.539 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:01.540 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:01.541 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:01.542 [print] "true";"true";"true"
76
* eval db.writeln('"ca3f849f-b303-4757-aa30-e5cdd692e07a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ca3f849f-b303-4757-aa30-e5cdd692e07a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ca3f849f-b303-4757-aa30-e5cdd692e07a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.168:82]
52e5cf69-fdef-4092-8ee0-d7103b156bb5
ms: 956
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:00.720 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '52e5cf69-fdef-4092-8ee0-d7103b156bb5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
938
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '52e5cf69-fdef-4092-8ee0-d7103b156bb5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
4
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:01.670 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2015/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:01.671 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:01.672 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:01.672 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:01.673 [print] Beheer PDOK
57
* print operateson
0
04:52:01.673 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:01.674 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:01.675 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:01.676 [print] "true";"true"
76
* eval db.writeln('"52e5cf69-fdef-4092-8ee0-d7103b156bb5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"52e5cf69-fdef-4092-8ee0-d7103b156bb5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"52e5cf69-fdef-4092-8ee0-d7103b156bb5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.169:82]
d4bb0eb0-fdaf-4ce2-a005-e0b3686cb38e
ms: 922
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:01.265 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd4bb0eb0-fdaf-4ce2-a005-e0b3686cb38e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
907
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd4bb0eb0-fdaf-4ce2-a005-e0b3686cb38e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:02.181 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2016/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:02.181 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:02.182 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:02.182 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:02.183 [print] Beheer PDOK
57
* print operateson
0
04:52:02.183 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:02.185 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:02.186 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:02.187 [print] "true";"true";"true"
76
* eval db.writeln('"d4bb0eb0-fdaf-4ce2-a005-e0b3686cb38e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d4bb0eb0-fdaf-4ce2-a005-e0b3686cb38e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d4bb0eb0-fdaf-4ce2-a005-e0b3686cb38e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.170:82]
a4bbba49-6d8c-408d-85cc-30c3fcffeaad
ms: 941
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:01.310 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a4bbba49-6d8c-408d-85cc-30c3fcffeaad'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
927
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a4bbba49-6d8c-408d-85cc-30c3fcffeaad'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:02.246 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2013/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:02.247 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:52:02.248 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:02.248 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:02.249 [print] Beheer PDOK
57
* print operateson
0
04:52:02.249 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:02.251 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:02.251 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:02.252 [print] "true";"true"
76
* eval db.writeln('"a4bbba49-6d8c-408d-85cc-30c3fcffeaad","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a4bbba49-6d8c-408d-85cc-30c3fcffeaad","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a4bbba49-6d8c-408d-85cc-30c3fcffeaad","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.171:82]
16830927-0127-48b1-b442-55882378cedf
ms: 920
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:01.545 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
24
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '16830927-0127-48b1-b442-55882378cedf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
880
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '16830927-0127-48b1-b442-55882378cedf'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:02.458 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2014/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:02.459 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:02.460 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:02.460 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:02.461 [print] Beheer PDOK
57
* print operateson
0
04:52:02.461 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:02.462 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:02.463 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:02.464 [print] "true";"true"
76
* eval db.writeln('"16830927-0127-48b1-b442-55882378cedf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"16830927-0127-48b1-b442-55882378cedf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"16830927-0127-48b1-b442-55882378cedf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.172:82]
8891985c-5178-4a9e-bb76-21625a9fb1ef
ms: 886
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:01.679 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8891985c-5178-4a9e-bb76-21625a9fb1ef'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
872
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8891985c-5178-4a9e-bb76-21625a9fb1ef'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:02.560 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2015/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:02.561 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:02.562 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:02.562 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:02.563 [print] Beheer PDOK
57
* print operateson
0
04:52:02.563 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:02.564 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:02.565 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:02.566 [print] "true";"true";"true"
76
* eval db.writeln('"8891985c-5178-4a9e-bb76-21625a9fb1ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8891985c-5178-4a9e-bb76-21625a9fb1ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8891985c-5178-4a9e-bb76-21625a9fb1ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.173:82]
bef01bd9-ea47-4a7d-9c2c-1832894019a3
ms: 897
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:02.190 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bef01bd9-ea47-4a7d-9c2c-1832894019a3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
884
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bef01bd9-ea47-4a7d-9c2c-1832894019a3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:03.082 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2013/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:03.082 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:03.083 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:03.083 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:03.084 [print] Beheer PDOK
57
* print operateson
0
04:52:03.084 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:03.086 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:03.086 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:03.087 [print] "true";"true";"true"
76
* eval db.writeln('"bef01bd9-ea47-4a7d-9c2c-1832894019a3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bef01bd9-ea47-4a7d-9c2c-1832894019a3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bef01bd9-ea47-4a7d-9c2c-1832894019a3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.174:82]
0f87998b-e629-4ee3-96ad-7c48c3d318bc
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:02.256 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0f87998b-e629-4ee3-96ad-7c48c3d318bc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0f87998b-e629-4ee3-96ad-7c48c3d318bc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:03.152 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2017/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:03.153 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:03.154 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:03.154 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:03.155 [print] Beheer PDOK
57
* print operateson
0
04:52:03.155 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:03.157 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:03.158 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:03.159 [print] "true";"true"
76
* eval db.writeln('"0f87998b-e629-4ee3-96ad-7c48c3d318bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0f87998b-e629-4ee3-96ad-7c48c3d318bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0f87998b-e629-4ee3-96ad-7c48c3d318bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.175:82]
e5b2dc19-0286-422c-933e-6fb692513a25
ms: 894
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:02.467 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e5b2dc19-0286-422c-933e-6fb692513a25'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
881
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e5b2dc19-0286-422c-933e-6fb692513a25'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:03.356 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2019/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:03.356 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:03.357 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:03.357 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:03.358 [print] Beheer PDOK
57
* print operateson
0
04:52:03.358 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:03.359 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:03.360 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:03.361 [print] "true";"true";"true"
76
* eval db.writeln('"e5b2dc19-0286-422c-933e-6fb692513a25","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e5b2dc19-0286-422c-933e-6fb692513a25","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e5b2dc19-0286-422c-933e-6fb692513a25","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.176:82]
a25cbbdf-544e-4bc3-b6a9-2544a574d54a
ms: 892
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:02.569 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a25cbbdf-544e-4bc3-b6a9-2544a574d54a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a25cbbdf-544e-4bc3-b6a9-2544a574d54a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:03.455 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2014/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:03.456 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:03.456 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:03.457 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:03.457 [print] Beheer PDOK
57
* print operateson
0
04:52:03.457 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:03.459 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:03.459 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:03.460 [print] "true";"true";"true"
76
* eval db.writeln('"a25cbbdf-544e-4bc3-b6a9-2544a574d54a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a25cbbdf-544e-4bc3-b6a9-2544a574d54a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a25cbbdf-544e-4bc3-b6a9-2544a574d54a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.177:82]
575569de-c5d1-4250-991c-4c7ef0b8d3f7
ms: 901
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:03.090 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '575569de-c5d1-4250-991c-4c7ef0b8d3f7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
882
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '575569de-c5d1-4250-991c-4c7ef0b8d3f7'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:03.982 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2020/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
2
04:52:03.984 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:03.985 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:03.986 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:03.987 [print] Beheer PDOK
57
* print operateson
0
04:52:03.987 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:03.989 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:03.990 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:03.991 [print] "true";"true";"true"
76
* eval db.writeln('"575569de-c5d1-4250-991c-4c7ef0b8d3f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"575569de-c5d1-4250-991c-4c7ef0b8d3f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"575569de-c5d1-4250-991c-4c7ef0b8d3f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.178:82]
557f39e4-faa8-4b9b-a6fa-6b929b67e0ae
ms: 883
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:03.162 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '557f39e4-faa8-4b9b-a6fa-6b929b67e0ae'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
865
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '557f39e4-faa8-4b9b-a6fa-6b929b67e0ae'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:04.037 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2016/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:52:04.038 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:04.039 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:04.039 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:04.040 [print] Beheer PDOK
57
* print operateson
1
04:52:04.041 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:04.043 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:04.044 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:04.045 [print] "true";"true"
76
* eval db.writeln('"557f39e4-faa8-4b9b-a6fa-6b929b67e0ae","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"557f39e4-faa8-4b9b-a6fa-6b929b67e0ae","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"557f39e4-faa8-4b9b-a6fa-6b929b67e0ae","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.179:82]
9215411c-e91f-497b-8e28-74d430ccb204
ms: 897
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:03.364 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9215411c-e91f-497b-8e28-74d430ccb204'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9215411c-e91f-497b-8e28-74d430ccb204'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
0
04:52:04.253 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2018/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:04.254 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:04.255 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:04.255 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:04.256 [print] Beheer PDOK
57
* print operateson
0
04:52:04.257 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:04.258 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:04.259 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:04.260 [print] "true";"true"
76
* eval db.writeln('"9215411c-e91f-497b-8e28-74d430ccb204","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"9215411c-e91f-497b-8e28-74d430ccb204","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9215411c-e91f-497b-8e28-74d430ccb204","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.180:82]
4c1a54dc-9c7c-4129-995d-5df1b689c1e0
ms: 891
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:03.472 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4c1a54dc-9c7c-4129-995d-5df1b689c1e0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
875
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4c1a54dc-9c7c-4129-995d-5df1b689c1e0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:04.355 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2018/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:04.356 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:04.357 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:04.357 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:04.358 [print] Beheer PDOK
57
* print operateson
0
04:52:04.358 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:04.359 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:04.360 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:04.361 [print] "true";"true";"true"
76
* eval db.writeln('"4c1a54dc-9c7c-4129-995d-5df1b689c1e0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
2
77
* eval db.writeln('"4c1a54dc-9c7c-4129-995d-5df1b689c1e0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4c1a54dc-9c7c-4129-995d-5df1b689c1e0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.181:82]
12ba8ac9-069c-40df-abbc-3e21603ee940
ms: 940
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:03.994 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '12ba8ac9-069c-40df-abbc-3e21603ee940'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
927
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '12ba8ac9-069c-40df-abbc-3e21603ee940'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:04.929 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2017/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:04.930 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:04.931 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:04.931 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:04.932 [print] Beheer PDOK
57
* print operateson
0
04:52:04.932 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:04.933 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:04.934 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:04.935 [print] "true";"true"
76
* eval db.writeln('"12ba8ac9-069c-40df-abbc-3e21603ee940","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"12ba8ac9-069c-40df-abbc-3e21603ee940","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"12ba8ac9-069c-40df-abbc-3e21603ee940","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.182:82]
be97c150-0d1b-4c59-adbf-a2d8ebde019c
ms: 906
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:04.049 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'be97c150-0d1b-4c59-adbf-a2d8ebde019c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
894
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'be97c150-0d1b-4c59-adbf-a2d8ebde019c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:04.950 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2019/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:04.951 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:04.951 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:04.951 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:04.952 [print] Beheer PDOK
57
* print operateson
0
04:52:04.952 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:04.953 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:04.954 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:04.955 [print] "true";"true"
76
* eval db.writeln('"be97c150-0d1b-4c59-adbf-a2d8ebde019c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"be97c150-0d1b-4c59-adbf-a2d8ebde019c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"be97c150-0d1b-4c59-adbf-a2d8ebde019c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.183:82]
effe2d13-843a-4fd2-8a49-5823c282aaf3
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:04.264 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'effe2d13-843a-4fd2-8a49-5823c282aaf3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'effe2d13-843a-4fd2-8a49-5823c282aaf3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:05.161 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2019/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:05.162 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:05.162 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:05.163 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:05.164 [print] Beheer PDOK
57
* print operateson
0
04:52:05.164 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:05.165 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:05.167 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:05.168 [print] "true";"true";"true"
76
* eval db.writeln('"effe2d13-843a-4fd2-8a49-5823c282aaf3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"effe2d13-843a-4fd2-8a49-5823c282aaf3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"effe2d13-843a-4fd2-8a49-5823c282aaf3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.184:82]
adcc5ad7-d3b3-445a-9033-1274cc7f0d61
ms: 889
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:04.366 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'adcc5ad7-d3b3-445a-9033-1274cc7f0d61'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
875
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adcc5ad7-d3b3-445a-9033-1274cc7f0d61'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:05.248 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2010/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:05.249 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:05.250 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:05.250 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:05.251 [print] Beheer PDOK
57
* print operateson
0
04:52:05.251 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:05.252 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:05.253 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:05.254 [print] "true";"true";"true"
76
* eval db.writeln('"adcc5ad7-d3b3-445a-9033-1274cc7f0d61","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"adcc5ad7-d3b3-445a-9033-1274cc7f0d61","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"adcc5ad7-d3b3-445a-9033-1274cc7f0d61","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.185:82]
b78d50ac-663f-4471-8678-acdd33723f39
ms: 922
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:04.937 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b78d50ac-663f-4471-8678-acdd33723f39'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
906
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b78d50ac-663f-4471-8678-acdd33723f39'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:05.852 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2008/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:05.853 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:05.853 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:05.854 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:05.855 [print] Beheer PDOK
57
* print operateson
1
04:52:05.855 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:05.857 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:05.858 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:05.859 [print] "true";"true"
76
* eval db.writeln('"b78d50ac-663f-4471-8678-acdd33723f39","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b78d50ac-663f-4471-8678-acdd33723f39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b78d50ac-663f-4471-8678-acdd33723f39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.186:82]
b6d2d023-92d9-40a2-a020-5cc2275a450f
ms: 952
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:04.958 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b6d2d023-92d9-40a2-a020-5cc2275a450f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
937
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b6d2d023-92d9-40a2-a020-5cc2275a450f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:05.902 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2009/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:05.904 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:05.904 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:05.905 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:05.906 [print] Beheer PDOK
57
* print operateson
0
04:52:05.906 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:05.907 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:05.909 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:05.910 [print] "true";"true"
76
* eval db.writeln('"b6d2d023-92d9-40a2-a020-5cc2275a450f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b6d2d023-92d9-40a2-a020-5cc2275a450f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b6d2d023-92d9-40a2-a020-5cc2275a450f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.187:82]
21226249-b3cc-4ed8-be7c-83298c72d1b5
ms: 911
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:05.171 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '21226249-b3cc-4ed8-be7c-83298c72d1b5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
880
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '21226249-b3cc-4ed8-be7c-83298c72d1b5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
14
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:06.074 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2010/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:06.075 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:06.076 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:06.076 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:06.077 [print] Beheer PDOK
57
* print operateson
0
04:52:06.078 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:06.079 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:06.081 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:06.082 [print] "true";"true"
76
* eval db.writeln('"21226249-b3cc-4ed8-be7c-83298c72d1b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"21226249-b3cc-4ed8-be7c-83298c72d1b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"21226249-b3cc-4ed8-be7c-83298c72d1b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.188:82]
f2c2f113-65d4-4de4-a7d1-d9f4d5ece6d6
ms: 916
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:05.257 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f2c2f113-65d4-4de4-a7d1-d9f4d5ece6d6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
901
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2c2f113-65d4-4de4-a7d1-d9f4d5ece6d6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:06.166 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2020/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:06.167 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:06.168 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:06.168 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:06.169 [print] Beheer PDOK
57
* print operateson
0
04:52:06.170 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:06.171 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:06.172 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:06.173 [print] "true";"true"
76
* eval db.writeln('"f2c2f113-65d4-4de4-a7d1-d9f4d5ece6d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f2c2f113-65d4-4de4-a7d1-d9f4d5ece6d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f2c2f113-65d4-4de4-a7d1-d9f4d5ece6d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.189:82]
a22e453d-2dfb-45b0-ae1b-afb813508ddb
ms: 907
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:05.862 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a22e453d-2dfb-45b0-ae1b-afb813508ddb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
893
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a22e453d-2dfb-45b0-ae1b-afb813508ddb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:06.763 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2020/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:06.764 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:06.765 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:06.765 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:06.766 [print] Beheer PDOK
57
* print operateson
0
04:52:06.766 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:06.767 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:06.768 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:06.769 [print] "true";"true";"true"
76
* eval db.writeln('"a22e453d-2dfb-45b0-ae1b-afb813508ddb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a22e453d-2dfb-45b0-ae1b-afb813508ddb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a22e453d-2dfb-45b0-ae1b-afb813508ddb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.190:82]
f1e26638-3b45-4dd5-9ad0-f7d3654700f1
ms: 892
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:05.913 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f1e26638-3b45-4dd5-9ad0-f7d3654700f1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
874
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f1e26638-3b45-4dd5-9ad0-f7d3654700f1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:06.796 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2021/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:52:06.797 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:52:06.798 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:06.799 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:52:06.801 [print] Beheer PDOK
57
* print operateson
1
04:52:06.802 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:06.804 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:06.805 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:06.806 [print] "true";"true";"true"
76
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.191:82]
c39f6bad-579b-49c2-95e4-249fe997f0cb
ms: 899
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:06.085 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c39f6bad-579b-49c2-95e4-249fe997f0cb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
882
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c39f6bad-579b-49c2-95e4-249fe997f0cb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:06.977 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2004/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:06.978 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:06.979 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:06.980 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:06.981 [print] Beheer PDOK
57
* print operateson
0
04:52:06.981 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:06.983 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:06.984 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:06.985 [print] "true";"true";"true"
76
* eval db.writeln('"c39f6bad-579b-49c2-95e4-249fe997f0cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c39f6bad-579b-49c2-95e4-249fe997f0cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c39f6bad-579b-49c2-95e4-249fe997f0cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.192:82]
7e914f11-b775-4a12-91f1-459627ccdf5f
ms: 905
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:06.177 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7e914f11-b775-4a12-91f1-459627ccdf5f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
881
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7e914f11-b775-4a12-91f1-459627ccdf5f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:07.067 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2006/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:07.068 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:07.069 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:07.070 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:07.071 [print] Beheer PDOK
57
* print operateson
1
04:52:07.071 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:07.073 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:07.074 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:07.075 [print] "true";"true";"true"
76
* eval db.writeln('"7e914f11-b775-4a12-91f1-459627ccdf5f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7e914f11-b775-4a12-91f1-459627ccdf5f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7e914f11-b775-4a12-91f1-459627ccdf5f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
5
Scenario: [1.193:82]
75c92c7d-1d04-4e4c-96da-1286b886a92e
ms: 906
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:06.772 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '75c92c7d-1d04-4e4c-96da-1286b886a92e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '75c92c7d-1d04-4e4c-96da-1286b886a92e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:07.673 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2005/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:07.673 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:07.674 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:07.674 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:07.675 [print] Beheer PDOK
57
* print operateson
0
04:52:07.675 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:07.676 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:07.677 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:07.678 [print] "true";"true";"true"
76
* eval db.writeln('"75c92c7d-1d04-4e4c-96da-1286b886a92e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"75c92c7d-1d04-4e4c-96da-1286b886a92e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"75c92c7d-1d04-4e4c-96da-1286b886a92e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.194:82]
d1f7333f-04d7-4062-b469-847c47846cd7
ms: 909
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:06.810 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd1f7333f-04d7-4062-b469-847c47846cd7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd1f7333f-04d7-4062-b469-847c47846cd7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:07.711 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2004/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:07.712 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:07.713 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:07.713 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:07.714 [print] Beheer PDOK
57
* print operateson
1
04:52:07.715 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:07.717 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:07.718 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:07.719 [print] "true";"true"
76
* eval db.writeln('"d1f7333f-04d7-4062-b469-847c47846cd7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"d1f7333f-04d7-4062-b469-847c47846cd7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d1f7333f-04d7-4062-b469-847c47846cd7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.195:82]
e79ffdbb-f5cf-44ce-b5c2-ff4cbdf0abf4
ms: 890
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:06.988 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e79ffdbb-f5cf-44ce-b5c2-ff4cbdf0abf4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
874
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e79ffdbb-f5cf-44ce-b5c2-ff4cbdf0abf4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:07.871 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2000/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:07.872 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:07.872 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:07.873 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:07.874 [print] Beheer PDOK
57
* print operateson
0
04:52:07.874 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:07.876 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:07.877 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:07.878 [print] "true";"true";"true"
76
* eval db.writeln('"e79ffdbb-f5cf-44ce-b5c2-ff4cbdf0abf4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e79ffdbb-f5cf-44ce-b5c2-ff4cbdf0abf4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e79ffdbb-f5cf-44ce-b5c2-ff4cbdf0abf4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.196:82]
84975aa1-4357-43cd-a774-d31a482a6d35
ms: 901
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:07.085 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
1
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '84975aa1-4357-43cd-a774-d31a482a6d35'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
884
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '84975aa1-4357-43cd-a774-d31a482a6d35'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:07.978 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2001/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:07.979 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:07.980 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:07.980 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:07.981 [print] Beheer PDOK
57
* print operateson
0
04:52:07.981 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:07.982 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:07.983 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:07.984 [print] "true";"true"
76
* eval db.writeln('"84975aa1-4357-43cd-a774-d31a482a6d35","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"84975aa1-4357-43cd-a774-d31a482a6d35","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"84975aa1-4357-43cd-a774-d31a482a6d35","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.197:82]
45f9ddb3-8929-4c6c-aa99-dc99f7cedb04
ms: 882
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:07.681 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '45f9ddb3-8929-4c6c-aa99-dc99f7cedb04'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
870
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '45f9ddb3-8929-4c6c-aa99-dc99f7cedb04'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:08.558 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2021/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:08.559 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:08.559 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:08.560 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:08.560 [print] Beheer PDOK
57
* print operateson
0
04:52:08.560 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:08.562 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:08.563 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:08.563 [print] "true";"true"
76
* eval db.writeln('"45f9ddb3-8929-4c6c-aa99-dc99f7cedb04","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"45f9ddb3-8929-4c6c-aa99-dc99f7cedb04","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"45f9ddb3-8929-4c6c-aa99-dc99f7cedb04","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.198:82]
602ad34d-fe51-48f4-8224-95835144cf68
ms: 907
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:07.722 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '602ad34d-fe51-48f4-8224-95835144cf68'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
895
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '602ad34d-fe51-48f4-8224-95835144cf68'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:08.626 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2000/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:08.626 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:08.627 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:08.627 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:08.628 [print] Beheer PDOK
57
* print operateson
0
04:52:08.628 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:08.629 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:08.630 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:08.631 [print] "true";"true"
76
* eval db.writeln('"602ad34d-fe51-48f4-8224-95835144cf68","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"602ad34d-fe51-48f4-8224-95835144cf68","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"602ad34d-fe51-48f4-8224-95835144cf68","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.199:82]
783f5c73-193c-43d5-a158-3ff4db4c77c0
ms: 889
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:07.881 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '783f5c73-193c-43d5-a158-3ff4db4c77c0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
872
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '783f5c73-193c-43d5-a158-3ff4db4c77c0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:08.762 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2001/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:08.763 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:08.764 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:08.764 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:08.765 [print] Beheer PDOK
57
* print operateson
0
04:52:08.766 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:08.767 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:08.769 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:08.770 [print] "true";"true";"true"
76
* eval db.writeln('"783f5c73-193c-43d5-a158-3ff4db4c77c0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"783f5c73-193c-43d5-a158-3ff4db4c77c0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"783f5c73-193c-43d5-a158-3ff4db4c77c0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.200:82]
5d4b2ced-bc3c-4941-a89d-f5dfc618effb
ms: 877
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:07.988 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5d4b2ced-bc3c-4941-a89d-f5dfc618effb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
864
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5d4b2ced-bc3c-4941-a89d-f5dfc618effb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:08.860 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2007/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:08.861 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:08.861 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:08.861 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:08.862 [print] Beheer PDOK
57
* print operateson
0
04:52:08.862 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:08.863 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:08.864 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:08.865 [print] "true";"true"
76
* eval db.writeln('"5d4b2ced-bc3c-4941-a89d-f5dfc618effb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5d4b2ced-bc3c-4941-a89d-f5dfc618effb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5d4b2ced-bc3c-4941-a89d-f5dfc618effb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.201:82]
fbf5db58-bc1a-4767-9486-e028a2b69821
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:08.566 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fbf5db58-bc1a-4767-9486-e028a2b69821'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fbf5db58-bc1a-4767-9486-e028a2b69821'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:09.463 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2008/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:09.464 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:09.464 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:09.464 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:09.465 [print] Beheer PDOK
57
* print operateson
0
04:52:09.466 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:09.467 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:09.468 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:09.469 [print] "true";"true";"true"
76
* eval db.writeln('"fbf5db58-bc1a-4767-9486-e028a2b69821","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fbf5db58-bc1a-4767-9486-e028a2b69821","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fbf5db58-bc1a-4767-9486-e028a2b69821","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.202:82]
394a5d9f-e98c-44aa-abfa-a57fd67aec6c
ms: 882
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:08.634 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '394a5d9f-e98c-44aa-abfa-a57fd67aec6c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
869
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '394a5d9f-e98c-44aa-abfa-a57fd67aec6c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:09.510 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2006/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:09.511 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:09.512 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:09.512 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:09.513 [print] Beheer PDOK
57
* print operateson
0
04:52:09.513 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:09.514 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:09.515 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:09.516 [print] "true";"true"
76
* eval db.writeln('"394a5d9f-e98c-44aa-abfa-a57fd67aec6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"394a5d9f-e98c-44aa-abfa-a57fd67aec6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"394a5d9f-e98c-44aa-abfa-a57fd67aec6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.203:82]
55a77659-2021-4805-b4ee-4d9d123d8a52
ms: 900
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:08.773 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '55a77659-2021-4805-b4ee-4d9d123d8a52'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
885
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '55a77659-2021-4805-b4ee-4d9d123d8a52'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:09.668 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2007/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:09.668 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:09.669 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:09.669 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:09.670 [print] Beheer PDOK
57
* print operateson
0
04:52:09.670 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:09.671 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:09.672 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:09.673 [print] "true";"true";"true"
76
* eval db.writeln('"55a77659-2021-4805-b4ee-4d9d123d8a52","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"55a77659-2021-4805-b4ee-4d9d123d8a52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"55a77659-2021-4805-b4ee-4d9d123d8a52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.204:82]
34d4468a-780d-43cf-91f8-b1d3b3e3c7a5
ms: 891
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:08.868 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '34d4468a-780d-43cf-91f8-b1d3b3e3c7a5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
877
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '34d4468a-780d-43cf-91f8-b1d3b3e3c7a5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:09.752 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2003/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:09.753 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:09.753 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:09.754 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:09.754 [print] Beheer PDOK
57
* print operateson
0
04:52:09.755 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:09.756 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:09.757 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:09.758 [print] "true";"true";"true"
76
* eval db.writeln('"34d4468a-780d-43cf-91f8-b1d3b3e3c7a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"34d4468a-780d-43cf-91f8-b1d3b3e3c7a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"34d4468a-780d-43cf-91f8-b1d3b3e3c7a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.205:82]
4639209d-61b7-4e8f-955f-49092ed8964b
ms: 945
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:09.476 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4639209d-61b7-4e8f-955f-49092ed8964b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
915
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4639209d-61b7-4e8f-955f-49092ed8964b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
17
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:10.416 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2002/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:10.417 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:10.417 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:10.418 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:10.418 [print] Beheer PDOK
57
* print operateson
0
04:52:10.418 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:10.420 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:10.421 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:10.422 [print] "true";"true"
76
* eval db.writeln('"4639209d-61b7-4e8f-955f-49092ed8964b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4639209d-61b7-4e8f-955f-49092ed8964b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4639209d-61b7-4e8f-955f-49092ed8964b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.206:82]
0c1bc4a2-79eb-451d-9475-6e7c4adb10b0
ms: 916
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:09.519 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0c1bc4a2-79eb-451d-9475-6e7c4adb10b0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
900
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0c1bc4a2-79eb-451d-9475-6e7c4adb10b0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:10.429 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2003/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:10.430 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:10.430 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:10.431 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:10.431 [print] Beheer PDOK
57
* print operateson
0
04:52:10.431 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:10.433 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:10.434 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:10.434 [print] "true";"true"
76
* eval db.writeln('"0c1bc4a2-79eb-451d-9475-6e7c4adb10b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0c1bc4a2-79eb-451d-9475-6e7c4adb10b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0c1bc4a2-79eb-451d-9475-6e7c4adb10b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.207:82]
3e169cbc-b78d-473d-9f1d-34c3f629134a
ms: 947
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:09.676 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3e169cbc-b78d-473d-9f1d-34c3f629134a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
930
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3e169cbc-b78d-473d-9f1d-34c3f629134a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:10.617 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2002/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:10.618 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:10.619 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:10.619 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:10.620 [print] Beheer PDOK
57
* print operateson
0
04:52:10.620 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:10.621 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:10.622 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:10.623 [print] "true";"true";"true"
76
* eval db.writeln('"3e169cbc-b78d-473d-9f1d-34c3f629134a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3e169cbc-b78d-473d-9f1d-34c3f629134a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3e169cbc-b78d-473d-9f1d-34c3f629134a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.208:82]
a252d8b4-23d3-452c-8a24-4cd65681c424
ms: 914
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:09.762 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a252d8b4-23d3-452c-8a24-4cd65681c424'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
895
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a252d8b4-23d3-452c-8a24-4cd65681c424'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:10.666 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2009/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:52:10.668 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:52:10.669 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:52:10.669 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:52:10.671 [print] Beheer PDOK
57
* print operateson
1
04:52:10.671 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:10.673 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:10.675 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:10.676 [print] "true";"true";"true"
76
* eval db.writeln('"a252d8b4-23d3-452c-8a24-4cd65681c424","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a252d8b4-23d3-452c-8a24-4cd65681c424","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a252d8b4-23d3-452c-8a24-4cd65681c424","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.209:82]
cecbe171-6ee7-427d-8658-e764049644cc
ms: 956
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:10.425 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cecbe171-6ee7-427d-8658-e764049644cc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
943
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cecbe171-6ee7-427d-8658-e764049644cc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:11.375 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2005/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:11.376 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:11.377 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:11.377 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:11.377 [print] Beheer PDOK
57
* print operateson
0
04:52:11.377 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:11.379 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:11.379 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:11.380 [print] "true";"true"
76
* eval db.writeln('"cecbe171-6ee7-427d-8658-e764049644cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cecbe171-6ee7-427d-8658-e764049644cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cecbe171-6ee7-427d-8658-e764049644cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.210:82]
7ab53b91-9df1-4c39-ba0e-06ec80ce512b
ms: 910
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:10.437 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7ab53b91-9df1-4c39-ba0e-06ec80ce512b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
896
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7ab53b91-9df1-4c39-ba0e-06ec80ce512b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:11.342 [print] https://service.pdok.nl/rvo/ps-cdda/wms/v1_0?&request=getcapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:11.342 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:11.343 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:11.343 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:11.344 [print] Beheer PDOK
57
* print operateson
0
04:52:11.344 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=3387ef8a-9237-453a-aa4e-585d1e193550#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:11.345 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:11.346 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:11.347 [print] "true";"true"
76
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.211:82]
b023459a-9f0e-4d53-8059-a794119abbed
ms: 902
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:10.627 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b023459a-9f0e-4d53-8059-a794119abbed'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
886
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b023459a-9f0e-4d53-8059-a794119abbed'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:11.522 [print] https://service.pdok.nl/rvo/ps-cdda/wfs/v1_0?service=wfs&request=getcapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:11.523 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:11.523 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:11.524 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:11.524 [print] Beheer PDOK
57
* print operateson
0
04:52:11.524 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3387ef8a-9237-453a-aa4e-585d1e193550#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:11.526 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:11.527 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de interoperable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:11.528 [print] "true";"true";"true"
76
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.212:82]
4ba2d95d-f342-447a-9c35-ecf129a45df2
ms: 897
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:10.679 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4ba2d95d-f342-447a-9c35-ecf129a45df2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4ba2d95d-f342-447a-9c35-ecf129a45df2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:11.570 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/1971/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:11.571 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:11.572 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:11.572 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:11.573 [print] Beheer PDOK
57
* print operateson
0
04:52:11.573 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:11.574 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:11.575 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:11.576 [print] "true";"true";"true"
76
* eval db.writeln('"4ba2d95d-f342-447a-9c35-ecf129a45df2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4ba2d95d-f342-447a-9c35-ecf129a45df2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4ba2d95d-f342-447a-9c35-ecf129a45df2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.213:82]
74f560b3-ce64-40e0-94f7-7ff45ed4a14a
ms: 901
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:11.350 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '74f560b3-ce64-40e0-94f7-7ff45ed4a14a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '74f560b3-ce64-40e0-94f7-7ff45ed4a14a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:12.246 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2001/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:12.246 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:12.247 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:12.247 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:12.248 [print] Beheer PDOK
57
* print operateson
0
04:52:12.248 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:12.249 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:12.250 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:12.250 [print] "true";"true";"true"
76
* eval db.writeln('"74f560b3-ce64-40e0-94f7-7ff45ed4a14a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"74f560b3-ce64-40e0-94f7-7ff45ed4a14a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"74f560b3-ce64-40e0-94f7-7ff45ed4a14a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.214:82]
16f60687-7f46-4f58-9d09-f99458c9cd66
ms: 902
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:11.383 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '16f60687-7f46-4f58-9d09-f99458c9cd66'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
889
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '16f60687-7f46-4f58-9d09-f99458c9cd66'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:12.280 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2000/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:12.280 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:12.281 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:12.281 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:12.282 [print] Beheer PDOK
57
* print operateson
0
04:52:12.282 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:12.283 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:12.284 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:12.285 [print] "true";"true"
76
* eval db.writeln('"16f60687-7f46-4f58-9d09-f99458c9cd66","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"16f60687-7f46-4f58-9d09-f99458c9cd66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"16f60687-7f46-4f58-9d09-f99458c9cd66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.215:82]
f5fd4f4f-56a0-42f4-a0e4-5127016e7932
ms: 899
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:11.531 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f5fd4f4f-56a0-42f4-a0e4-5127016e7932'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
887
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f5fd4f4f-56a0-42f4-a0e4-5127016e7932'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:12.425 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2001/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:12.426 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:12.426 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:12.427 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:12.427 [print] Beheer PDOK
57
* print operateson
0
04:52:12.427 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:12.428 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:12.429 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:12.430 [print] "true";"true"
76
* eval db.writeln('"f5fd4f4f-56a0-42f4-a0e4-5127016e7932","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f5fd4f4f-56a0-42f4-a0e4-5127016e7932","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f5fd4f4f-56a0-42f4-a0e4-5127016e7932","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.216:82]
77dcfb9a-5ac4-4ae1-beb1-b75ad47d4c7b
ms: 888
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:11.579 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '77dcfb9a-5ac4-4ae1-beb1-b75ad47d4c7b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
874
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '77dcfb9a-5ac4-4ae1-beb1-b75ad47d4c7b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:12.460 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/1971/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:12.461 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:12.462 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:12.462 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:12.463 [print] Beheer PDOK
57
* print operateson
0
04:52:12.463 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:12.465 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:12.465 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:12.466 [print] "true";"true"
76
* eval db.writeln('"77dcfb9a-5ac4-4ae1-beb1-b75ad47d4c7b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"77dcfb9a-5ac4-4ae1-beb1-b75ad47d4c7b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"77dcfb9a-5ac4-4ae1-beb1-b75ad47d4c7b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.217:82]
c60cb981-b82a-48f3-a83d-8dbb9657e833
ms: 889
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:12.253 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c60cb981-b82a-48f3-a83d-8dbb9657e833'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c60cb981-b82a-48f3-a83d-8dbb9657e833'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:13.137 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2000/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:13.137 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:13.138 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:13.138 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:13.139 [print] Beheer PDOK
57
* print operateson
0
04:52:13.139 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:13.140 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:13.141 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:13.142 [print] "true";"true";"true"
76
* eval db.writeln('"c60cb981-b82a-48f3-a83d-8dbb9657e833","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c60cb981-b82a-48f3-a83d-8dbb9657e833","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c60cb981-b82a-48f3-a83d-8dbb9657e833","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.218:82]
772bec8e-ae4f-4cc5-8d8c-e7e56d89c59a
ms: 894
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:12.287 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '772bec8e-ae4f-4cc5-8d8c-e7e56d89c59a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '772bec8e-ae4f-4cc5-8d8c-e7e56d89c59a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:13.174 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2005/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:13.175 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:13.176 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:13.177 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:13.178 [print] Beheer PDOK
57
* print operateson
0
04:52:13.178 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:13.179 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:13.180 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:13.181 [print] "true";"true";"true"
76
* eval db.writeln('"772bec8e-ae4f-4cc5-8d8c-e7e56d89c59a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"772bec8e-ae4f-4cc5-8d8c-e7e56d89c59a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"772bec8e-ae4f-4cc5-8d8c-e7e56d89c59a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.219:82]
4b717eaa-1086-4235-b0bd-b4af1d4e4c1e
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:12.433 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4b717eaa-1086-4235-b0bd-b4af1d4e4c1e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
887
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4b717eaa-1086-4235-b0bd-b4af1d4e4c1e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:13.328 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2004/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:13.329 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:13.330 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:13.330 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:13.331 [print] Beheer PDOK
57
* print operateson
0
04:52:13.331 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:13.334 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:13.335 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:13.336 [print] "true";"true"
76
* eval db.writeln('"4b717eaa-1086-4235-b0bd-b4af1d4e4c1e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4b717eaa-1086-4235-b0bd-b4af1d4e4c1e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4b717eaa-1086-4235-b0bd-b4af1d4e4c1e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.220:82]
29986bd7-b5ce-4d0f-acdd-6b00ec84cfec
ms: 901
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:12.469 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '29986bd7-b5ce-4d0f-acdd-6b00ec84cfec'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '29986bd7-b5ce-4d0f-acdd-6b00ec84cfec'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:13.360 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2006/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:52:13.361 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:13.362 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:13.363 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:13.364 [print] Beheer PDOK
57
* print operateson
1
04:52:13.364 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:13.366 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:13.367 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:13.368 [print] "true";"true";"true"
76
* eval db.writeln('"29986bd7-b5ce-4d0f-acdd-6b00ec84cfec","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"29986bd7-b5ce-4d0f-acdd-6b00ec84cfec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"29986bd7-b5ce-4d0f-acdd-6b00ec84cfec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.221:82]
4ab2f91f-3049-438b-a1fb-737f29d4b588
ms: 897
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:13.145 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4ab2f91f-3049-438b-a1fb-737f29d4b588'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
884
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4ab2f91f-3049-438b-a1fb-737f29d4b588'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:14.037 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2005/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:14.038 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:14.038 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:14.038 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:14.039 [print] Beheer PDOK
57
* print operateson
0
04:52:14.039 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:14.041 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:14.041 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:14.042 [print] "true";"true"
76
* eval db.writeln('"4ab2f91f-3049-438b-a1fb-737f29d4b588","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4ab2f91f-3049-438b-a1fb-737f29d4b588","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4ab2f91f-3049-438b-a1fb-737f29d4b588","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.222:82]
c6db4a22-e717-4446-b625-05eacfbb2890
ms: 901
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:13.185 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c6db4a22-e717-4446-b625-05eacfbb2890'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c6db4a22-e717-4446-b625-05eacfbb2890'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:14.080 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2004/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:14.081 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:14.082 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:14.082 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:14.082 [print] Beheer PDOK
57
* print operateson
0
04:52:14.083 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:14.084 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:14.085 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:14.085 [print] "true";"true";"true"
76
* eval db.writeln('"c6db4a22-e717-4446-b625-05eacfbb2890","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c6db4a22-e717-4446-b625-05eacfbb2890","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c6db4a22-e717-4446-b625-05eacfbb2890","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.223:82]
5698d8bd-9e8c-4d0a-8c91-68ff3206781c
ms: 923
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:13.338 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5698d8bd-9e8c-4d0a-8c91-68ff3206781c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
877
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5698d8bd-9e8c-4d0a-8c91-68ff3206781c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
23
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:14.245 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2006/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:14.247 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:14.247 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:14.248 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:14.248 [print] Beheer PDOK
57
* print operateson
0
04:52:14.249 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:14.250 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:14.251 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
9
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:52:14.261 [print] "true";"true"
76
* eval db.writeln('"5698d8bd-9e8c-4d0a-8c91-68ff3206781c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5698d8bd-9e8c-4d0a-8c91-68ff3206781c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5698d8bd-9e8c-4d0a-8c91-68ff3206781c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.224:82]
633900ad-ed25-407d-8cf5-ccd2d8707447
ms: 927
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:13.373 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '633900ad-ed25-407d-8cf5-ccd2d8707447'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
878
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '633900ad-ed25-407d-8cf5-ccd2d8707447'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
7
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:14.269 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2007/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:52:14.270 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:52:14.271 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:52:14.273 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:52:14.274 [print] Beheer PDOK
57
* print operateson
1
04:52:14.275 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
11
64
* print corConformanceHref
1
04:52:14.288 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:14.290 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
10
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:14.300 [print] "true";"true";"true"
76
* eval db.writeln('"633900ad-ed25-407d-8cf5-ccd2d8707447","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"633900ad-ed25-407d-8cf5-ccd2d8707447","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"633900ad-ed25-407d-8cf5-ccd2d8707447","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.225:82]
180b6682-5d6f-429d-abb7-32f7d6253787
ms: 973
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:14.045 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '180b6682-5d6f-429d-abb7-32f7d6253787'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
947
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '180b6682-5d6f-429d-abb7-32f7d6253787'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:15.000 [print] https://service.pdok.nl/rvo/windkaart/wfs/v1_0?request=getcapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:15.001 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:15.001 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:15.002 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:15.003 [print] Beheer PDOK
57
* print operateson
0
04:52:15.003 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=d845cef6-0e23-4212-a951-b69763e39ef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
8
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
2
04:52:15.015 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:15.017 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:15.018 [print] "true";"true"
76
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.226:82]
d981070b-888c-42d5-85ff-1e383f3d7fce
ms: 919
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:14.088 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd981070b-888c-42d5-85ff-1e383f3d7fce'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
898
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd981070b-888c-42d5-85ff-1e383f3d7fce'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:14.998 [print] https://service.pdok.nl/rvo/windkaart/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:14.999 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:15.001 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:15.001 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:52:15.003 [print] Beheer PDOK
57
* print operateson
0
04:52:15.004 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d845cef6-0e23-4212-a951-b69763e39ef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:15.006 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:15.007 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:15.008 [print] "true";"true"
76
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.227:82]
b3b7b405-00d2-4bda-b237-1fa9618dc9ab
ms: 904
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:14.277 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b3b7b405-00d2-4bda-b237-1fa9618dc9ab'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
890
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b3b7b405-00d2-4bda-b237-1fa9618dc9ab'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:15.176 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2002/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:15.177 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:15.177 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:15.177 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:15.178 [print] Beheer PDOK
57
* print operateson
0
04:52:15.178 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:15.179 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:15.180 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:15.181 [print] "true";"true"
76
* eval db.writeln('"b3b7b405-00d2-4bda-b237-1fa9618dc9ab","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b3b7b405-00d2-4bda-b237-1fa9618dc9ab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b3b7b405-00d2-4bda-b237-1fa9618dc9ab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.228:82]
35ebe5b7-510a-462d-8dbb-0bc45f07dc23
ms: 911
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:14.304 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '35ebe5b7-510a-462d-8dbb-0bc45f07dc23'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
898
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '35ebe5b7-510a-462d-8dbb-0bc45f07dc23'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:15.210 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2002/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:15.211 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:15.211 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:15.211 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:15.212 [print] Beheer PDOK
57
* print operateson
0
04:52:15.212 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:15.213 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:15.214 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:15.215 [print] "true";"true";"true"
76
* eval db.writeln('"35ebe5b7-510a-462d-8dbb-0bc45f07dc23","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"35ebe5b7-510a-462d-8dbb-0bc45f07dc23","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"35ebe5b7-510a-462d-8dbb-0bc45f07dc23","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.229:82]
4e0a72e4-1dd7-4ec8-8991-72571c9fa3d9
ms: 946
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:15.012 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4e0a72e4-1dd7-4ec8-8991-72571c9fa3d9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
925
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4e0a72e4-1dd7-4ec8-8991-72571c9fa3d9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:15.948 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2003/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:52:15.949 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:15.950 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:15.951 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:15.952 [print] Beheer PDOK
57
* print operateson
2
04:52:15.954 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:15.956 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:15.957 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:15.958 [print] "true";"true"
76
* eval db.writeln('"4e0a72e4-1dd7-4ec8-8991-72571c9fa3d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"4e0a72e4-1dd7-4ec8-8991-72571c9fa3d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4e0a72e4-1dd7-4ec8-8991-72571c9fa3d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.230:82]
4a3a58eb-3956-4477-8715-52214d84e8ca
ms: 953
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:15.022 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4a3a58eb-3956-4477-8715-52214d84e8ca'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
930
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4a3a58eb-3956-4477-8715-52214d84e8ca'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
3
45
* print connectUrl
4
04:52:15.965 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2003/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:15.967 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:15.968 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:15.968 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:15.969 [print] Beheer PDOK
57
* print operateson
1
04:52:15.970 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:15.972 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:15.973 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:15.974 [print] "true";"true";"true"
76
* eval db.writeln('"4a3a58eb-3956-4477-8715-52214d84e8ca","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"4a3a58eb-3956-4477-8715-52214d84e8ca","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4a3a58eb-3956-4477-8715-52214d84e8ca","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.231:82]
0ab016b5-f7d1-47ee-852e-565f5efe4427
ms: 894
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:15.184 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0ab016b5-f7d1-47ee-852e-565f5efe4427'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
880
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0ab016b5-f7d1-47ee-852e-565f5efe4427'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:16.072 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2009/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:16.072 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:16.073 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:16.073 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:16.074 [print] Beheer PDOK
57
* print operateson
0
04:52:16.074 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:16.076 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:16.077 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:16.078 [print] "true";"true"
76
* eval db.writeln('"0ab016b5-f7d1-47ee-852e-565f5efe4427","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0ab016b5-f7d1-47ee-852e-565f5efe4427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0ab016b5-f7d1-47ee-852e-565f5efe4427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.232:82]
7cfc30d6-f291-4f6e-9111-472c05538fb9
ms: 914
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:15.218 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7cfc30d6-f291-4f6e-9111-472c05538fb9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
901
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7cfc30d6-f291-4f6e-9111-472c05538fb9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:16.126 [print] https:\/\/service.pdok.nl\/cbs\/vierkantstatistieken500m\/2008\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:16.126 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:16.127 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:16.127 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:16.128 [print] Beheer PDOK
57
* print operateson
0
04:52:16.128 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:16.130 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:16.131 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:16.132 [print] "true";"true"
76
* eval db.writeln('"7cfc30d6-f291-4f6e-9111-472c05538fb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7cfc30d6-f291-4f6e-9111-472c05538fb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7cfc30d6-f291-4f6e-9111-472c05538fb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.233:82]
0c140d6b-91f2-4ebf-8bcf-e016f928f6ad
ms: 905
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:15.962 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0c140d6b-91f2-4ebf-8bcf-e016f928f6ad'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0c140d6b-91f2-4ebf-8bcf-e016f928f6ad'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:16.862 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2010/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:16.863 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:16.863 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:16.863 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:16.864 [print] Beheer PDOK
57
* print operateson
0
04:52:16.864 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:16.865 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:16.866 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:16.867 [print] "true";"true";"true"
76
* eval db.writeln('"0c140d6b-91f2-4ebf-8bcf-e016f928f6ad","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0c140d6b-91f2-4ebf-8bcf-e016f928f6ad","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0c140d6b-91f2-4ebf-8bcf-e016f928f6ad","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.234:82]
d6881c12-08b1-4f1d-90f8-21e0c3c4f733
ms: 914
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:15.979 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd6881c12-08b1-4f1d-90f8-21e0c3c4f733'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
901
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd6881c12-08b1-4f1d-90f8-21e0c3c4f733'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:16.888 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2008/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:16.888 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:16.889 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:16.889 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:16.890 [print] Beheer PDOK
57
* print operateson
0
04:52:16.890 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:16.891 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:16.892 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:16.893 [print] "true";"true";"true"
76
* eval db.writeln('"d6881c12-08b1-4f1d-90f8-21e0c3c4f733","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d6881c12-08b1-4f1d-90f8-21e0c3c4f733","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d6881c12-08b1-4f1d-90f8-21e0c3c4f733","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.235:82]
b6ae8121-586d-430a-bd45-ab4484e96630
ms: 895
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:16.081 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b6ae8121-586d-430a-bd45-ab4484e96630'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
881
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b6ae8121-586d-430a-bd45-ab4484e96630'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:16.969 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2007/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:16.970 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:16.971 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:16.971 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:16.972 [print] Beheer PDOK
57
* print operateson
0
04:52:16.972 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:16.973 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:16.974 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:16.975 [print] "true";"true"
76
* eval db.writeln('"b6ae8121-586d-430a-bd45-ab4484e96630","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b6ae8121-586d-430a-bd45-ab4484e96630","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b6ae8121-586d-430a-bd45-ab4484e96630","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.236:82]
651421b3-63a7-4388-8566-11119bdcb874
ms: 884
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:16.135 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '651421b3-63a7-4388-8566-11119bdcb874'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
869
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '651421b3-63a7-4388-8566-11119bdcb874'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:17.013 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2009/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:17.014 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:17.015 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:17.015 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:17.016 [print] Beheer PDOK
57
* print operateson
0
04:52:17.016 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:17.017 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:17.018 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:17.019 [print] "true";"true";"true"
76
* eval db.writeln('"651421b3-63a7-4388-8566-11119bdcb874","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"651421b3-63a7-4388-8566-11119bdcb874","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"651421b3-63a7-4388-8566-11119bdcb874","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.237:82]
6776cafe-a7a9-45af-b370-6a8f638a12d5
ms: 895
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:16.870 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6776cafe-a7a9-45af-b370-6a8f638a12d5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
880
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6776cafe-a7a9-45af-b370-6a8f638a12d5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:17.757 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2015/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:17.758 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:17.758 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:17.758 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:52:17.760 [print] Beheer PDOK
57
* print operateson
1
04:52:17.761 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:17.763 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:17.764 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:17.765 [print] "true";"true"
76
* eval db.writeln('"6776cafe-a7a9-45af-b370-6a8f638a12d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6776cafe-a7a9-45af-b370-6a8f638a12d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6776cafe-a7a9-45af-b370-6a8f638a12d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.238:82]
9ff243a3-1d9f-4c95-9d22-b5144b1935e5
ms: 916
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:16.896 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9ff243a3-1d9f-4c95-9d22-b5144b1935e5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
903
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ff243a3-1d9f-4c95-9d22-b5144b1935e5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:17.805 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2017/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:17.806 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:17.807 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:17.807 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:17.808 [print] Beheer PDOK
57
* print operateson
0
04:52:17.808 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:17.809 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:17.810 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:17.811 [print] "true";"true";"true"
76
* eval db.writeln('"9ff243a3-1d9f-4c95-9d22-b5144b1935e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9ff243a3-1d9f-4c95-9d22-b5144b1935e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9ff243a3-1d9f-4c95-9d22-b5144b1935e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.239:82]
bbdbf836-590b-46bf-88d1-14550a2e1cb1
ms: 914
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:16.978 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bbdbf836-590b-46bf-88d1-14550a2e1cb1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
901
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bbdbf836-590b-46bf-88d1-14550a2e1cb1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:17.887 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2015/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:17.888 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:17.888 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:17.889 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:17.889 [print] Beheer PDOK
57
* print operateson
0
04:52:17.890 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:17.891 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:17.892 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:17.893 [print] "true";"true";"true"
76
* eval db.writeln('"bbdbf836-590b-46bf-88d1-14550a2e1cb1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bbdbf836-590b-46bf-88d1-14550a2e1cb1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bbdbf836-590b-46bf-88d1-14550a2e1cb1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.240:82]
2d8e9629-0073-4e28-9284-4f72f91f2f58
ms: 906
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:17.023 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2d8e9629-0073-4e28-9284-4f72f91f2f58'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
891
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2d8e9629-0073-4e28-9284-4f72f91f2f58'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:17.921 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2016/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:17.922 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:17.923 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:17.924 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:17.925 [print] Beheer PDOK
57
* print operateson
0
04:52:17.925 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:17.927 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:17.928 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:17.929 [print] "true";"true";"true"
76
* eval db.writeln('"2d8e9629-0073-4e28-9284-4f72f91f2f58","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2d8e9629-0073-4e28-9284-4f72f91f2f58","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2d8e9629-0073-4e28-9284-4f72f91f2f58","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.241:82]
e8af7137-b357-4bc7-81d8-fccb8819f4ae
ms: 901
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:17.768 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e8af7137-b357-4bc7-81d8-fccb8819f4ae'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
889
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e8af7137-b357-4bc7-81d8-fccb8819f4ae'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:18.664 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2016/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:18.665 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:18.665 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:18.666 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:18.666 [print] Beheer PDOK
57
* print operateson
0
04:52:18.666 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:18.668 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:18.668 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:18.669 [print] "true";"true"
76
* eval db.writeln('"e8af7137-b357-4bc7-81d8-fccb8819f4ae","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e8af7137-b357-4bc7-81d8-fccb8819f4ae","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e8af7137-b357-4bc7-81d8-fccb8819f4ae","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.242:82]
3c71cf77-fea5-4cc9-96db-66c5cc301a4e
ms: 918
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:17.814 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3c71cf77-fea5-4cc9-96db-66c5cc301a4e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
904
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3c71cf77-fea5-4cc9-96db-66c5cc301a4e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:18.726 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2011/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:18.727 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:18.728 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:18.728 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:18.729 [print] Beheer PDOK
57
* print operateson
0
04:52:18.729 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:18.730 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:18.731 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:18.732 [print] "true";"true";"true"
76
* eval db.writeln('"3c71cf77-fea5-4cc9-96db-66c5cc301a4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3c71cf77-fea5-4cc9-96db-66c5cc301a4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3c71cf77-fea5-4cc9-96db-66c5cc301a4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.243:82]
f05c3641-0d6b-4988-9757-ec42e80f3688
ms: 904
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:17.895 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f05c3641-0d6b-4988-9757-ec42e80f3688'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f05c3641-0d6b-4988-9757-ec42e80f3688'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
3
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:18.791 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2012/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:18.792 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:52:18.793 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:18.794 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:18.795 [print] Beheer PDOK
57
* print operateson
0
04:52:18.795 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:18.797 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:18.798 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:18.799 [print] "true";"true";"true"
76
* eval db.writeln('"f05c3641-0d6b-4988-9757-ec42e80f3688","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f05c3641-0d6b-4988-9757-ec42e80f3688","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f05c3641-0d6b-4988-9757-ec42e80f3688","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.244:82]
512b60f2-6ebc-47c1-8683-215bd72c2294
ms: 917
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:17.955 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '512b60f2-6ebc-47c1-8683-215bd72c2294'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
897
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '512b60f2-6ebc-47c1-8683-215bd72c2294'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:18.886 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2010/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:18.887 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:18.887 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:18.887 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:18.888 [print] Beheer PDOK
57
* print operateson
1
04:52:18.889 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
3
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:18.894 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:18.895 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:18.896 [print] "true";"true"
76
* eval db.writeln('"512b60f2-6ebc-47c1-8683-215bd72c2294","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"512b60f2-6ebc-47c1-8683-215bd72c2294","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"512b60f2-6ebc-47c1-8683-215bd72c2294","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.245:82]
499365ec-e001-45ab-9c68-1d80272e9192
ms: 912
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:18.672 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '499365ec-e001-45ab-9c68-1d80272e9192'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
901
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '499365ec-e001-45ab-9c68-1d80272e9192'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:19.580 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2011/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:19.580 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:19.581 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:19.581 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:19.582 [print] Beheer PDOK
57
* print operateson
0
04:52:19.582 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:19.583 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:19.584 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:19.584 [print] "true";"true"
76
* eval db.writeln('"499365ec-e001-45ab-9c68-1d80272e9192","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"499365ec-e001-45ab-9c68-1d80272e9192","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"499365ec-e001-45ab-9c68-1d80272e9192","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.246:82]
371b7fc3-8a7d-4fb4-b9a6-0159b6574a7a
ms: 876
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:18.735 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '371b7fc3-8a7d-4fb4-b9a6-0159b6574a7a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
863
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '371b7fc3-8a7d-4fb4-b9a6-0159b6574a7a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:19.605 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2012/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:19.606 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:19.606 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:19.607 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:19.607 [print] Beheer PDOK
57
* print operateson
0
04:52:19.608 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:19.609 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:19.610 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:19.611 [print] "true";"true"
76
* eval db.writeln('"371b7fc3-8a7d-4fb4-b9a6-0159b6574a7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"371b7fc3-8a7d-4fb4-b9a6-0159b6574a7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"371b7fc3-8a7d-4fb4-b9a6-0159b6574a7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.247:82]
ccf3d6e0-f67b-490a-b3f1-a6d129fdb253
ms: 910
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:18.802 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ccf3d6e0-f67b-490a-b3f1-a6d129fdb253'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
891
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ccf3d6e0-f67b-490a-b3f1-a6d129fdb253'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:19.705 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2013/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:52:19.706 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:19.706 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:19.707 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:19.708 [print] Beheer PDOK
57
* print operateson
0
04:52:19.708 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:19.710 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:19.712 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:19.713 [print] "true";"true"
76
* eval db.writeln('"ccf3d6e0-f67b-490a-b3f1-a6d129fdb253","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ccf3d6e0-f67b-490a-b3f1-a6d129fdb253","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ccf3d6e0-f67b-490a-b3f1-a6d129fdb253","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.248:82]
3f498900-56f5-4b23-8d05-0d665498662b
ms: 902
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:18.900 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3f498900-56f5-4b23-8d05-0d665498662b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3f498900-56f5-4b23-8d05-0d665498662b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:19.795 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2014/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:19.796 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:19.797 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:19.797 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:19.798 [print] Beheer PDOK
57
* print operateson
0
04:52:19.798 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:19.799 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:19.800 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:19.801 [print] "true";"true";"true"
76
* eval db.writeln('"3f498900-56f5-4b23-8d05-0d665498662b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3f498900-56f5-4b23-8d05-0d665498662b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3f498900-56f5-4b23-8d05-0d665498662b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.249:82]
3514d891-7e11-43df-b25f-f339ec45bda8
ms: 937
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:19.587 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3514d891-7e11-43df-b25f-f339ec45bda8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
925
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3514d891-7e11-43df-b25f-f339ec45bda8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:20.519 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2014/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:20.520 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:20.520 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:20.521 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:20.521 [print] Beheer PDOK
57
* print operateson
0
04:52:20.522 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:20.523 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:20.524 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:20.524 [print] "true";"true"
76
* eval db.writeln('"3514d891-7e11-43df-b25f-f339ec45bda8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3514d891-7e11-43df-b25f-f339ec45bda8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3514d891-7e11-43df-b25f-f339ec45bda8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.250:82]
59486207-3ab7-47f9-b4e6-6bb91656718e
ms: 956
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:19.614 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '59486207-3ab7-47f9-b4e6-6bb91656718e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
943
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '59486207-3ab7-47f9-b4e6-6bb91656718e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:20.565 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/2013/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:20.566 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:20.566 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:20.567 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:20.567 [print] Beheer PDOK
57
* print operateson
0
04:52:20.568 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:20.569 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:20.570 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:20.570 [print] "true";"true";"true"
76
* eval db.writeln('"59486207-3ab7-47f9-b4e6-6bb91656718e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"59486207-3ab7-47f9-b4e6-6bb91656718e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"59486207-3ab7-47f9-b4e6-6bb91656718e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.251:82]
108fec55-e467-4d04-ab35-fd0d7060e3e2
ms: 918
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:19.717 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '108fec55-e467-4d04-ab35-fd0d7060e3e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
905
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '108fec55-e467-4d04-ab35-fd0d7060e3e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:20.630 [print] https://service.pdok.nl/rws/richtlijnstedelijkafvalwater/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:20.631 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:20.631 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:20.632 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:20.632 [print] Beheer PDOK
57
* print operateson
0
04:52:20.632 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=07d78f5e-f4c4-4c92-b866-94eb2cb38516#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=cc931834-5f9a-4106-a3a3-d5bf553b2675#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=917b5ba0-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=11a98cc2-2e64-4f05-ae16-b7677f8054ad#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:20.634 [print] "https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1";"http:\/\/data.europa.eu\/eli\/reg\/2009\/976"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:20.635 [print] "Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:20.635 [print] "true";"true"
76
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.252:82]
918388cf-9d8c-4264-b108-3e375bde0d52
ms: 900
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:19.804 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '918388cf-9d8c-4264-b108-3e375bde0d52'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
886
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '918388cf-9d8c-4264-b108-3e375bde0d52'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:20.699 [print] https:\/\/service.pdok.nl\/rws\/vaarwegmarkeringennld\/wms\/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:20.699 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:20.700 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:20.700 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:20.701 [print] Beheer PDOK
57
* print operateson
0
04:52:20.701 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=be1b1514-8d1f-48e1-9624-fee9b784138b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:20.703 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:20.703 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:20.704 [print] "true";"true"
76
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.253:82]
2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0
ms: 904
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:20.527 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
893
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:21.427 [print] https://service.pdok.nl/rws/richtlijnoverstromingsrisico/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:21.427 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:21.428 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:21.428 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:21.429 [print] Beheer PDOK
57
* print operateson
0
04:52:21.429 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=155f4288-e7c6-4278-8145-0e8cb5ffe52d#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=babb8ae8-533f-4fd1-be66-e8dcccf20b33#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=0e6bbc35-489b-4209-8e5c-41e36b9d0351#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:21.430 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:21.430 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:21.431 [print] "true";"true"
76
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.254:82]
40f04047-3b61-40eb-b026-c1a0caa71881
ms: 896
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:20.573 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '40f04047-3b61-40eb-b026-c1a0caa71881'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
881
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '40f04047-3b61-40eb-b026-c1a0caa71881'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:21.462 [print] https://service.pdok.nl/rvo/potentiekaart-reststromen/wfs/v1_0?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:21.463 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:21.464 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:21.464 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:21.465 [print] Beheer PDOK
57
* print operateson
0
04:52:21.465 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=34dacd72-d2fb-4e28-844d-73d3b9c3fef2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=419b85e5-04ee-4cc9-b910-bc58594a943a#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=119f7512-a71e-4d1a-82e7-7a2b63f9338b#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6ea55ec4-f312-40ef-9935-68806e61b496#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=af784610-df36-4d40-bac0-23d8e728999f#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=24eb504e-f5f3-4ecf-b760-cc5630e82a57#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:21.467 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:21.468 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:21.469 [print] "true";"true"
76
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.255:82]
ceda1b88-32ac-40b2-a841-71eb041c9427
ms: 892
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:20.638 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ceda1b88-32ac-40b2-a841-71eb041c9427'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
878
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ceda1b88-32ac-40b2-a841-71eb041c9427'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:21.525 [print] https://service.pdok.nl/rvo/potentiekaart-reststromen/wms/v1_0?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:21.525 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:21.526 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:21.526 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:21.527 [print] Beheer PDOK
57
* print operateson
0
04:52:21.527 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=34dacd72-d2fb-4e28-844d-73d3b9c3fef2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=419b85e5-04ee-4cc9-b910-bc58594a943a#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=119f7512-a71e-4d1a-82e7-7a2b63f9338b#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6ea55ec4-f312-40ef-9935-68806e61b496#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=af784610-df36-4d40-bac0-23d8e728999f#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=24eb504e-f5f3-4ecf-b760-cc5630e82a57#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:21.529 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:21.529 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:21.530 [print] "true";"true"
76
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.256:82]
26e2e9f4-be88-4c8c-bdef-94edfa93bde9
ms: 888
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:20.707 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '26e2e9f4-be88-4c8c-bdef-94edfa93bde9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '26e2e9f4-be88-4c8c-bdef-94edfa93bde9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:21.590 [print] https://service.pdok.nl/bzk/bro-hydrogeology/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:21.590 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:21.591 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:21.591 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:21.592 [print] Beheer PDOK
57
* print operateson
0
04:52:21.592 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:21.593 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:21.594 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:21.594 [print] "true";"true"
76
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.257:82]
bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa
ms: 890
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:21.434 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
875
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:22.317 [print] https://service.pdok.nl/kadaster/lc/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:22.318 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:22.319 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:22.319 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:22.320 [print] Beheer PDOK
57
* print operateson
0
04:52:22.320 [print] https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:22.321 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:22.322 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:22.323 [print] "true";"true"
76
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.258:82]
757a7c50-540d-4105-9135-73f09f700743
ms: 891
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:21.472 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '757a7c50-540d-4105-9135-73f09f700743'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
877
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '757a7c50-540d-4105-9135-73f09f700743'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:22.356 [print] https://service.pdok.nl/bzk/bro-grondwaterspiegeldiepte/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:22.357 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:22.357 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:22.358 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:22.359 [print] Beheer PDOK
57
* print operateson
0
04:52:22.359 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b756dabe-a331-42cd-b45e-f61828ee4534#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:22.361 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:22.362 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:22.363 [print] "true";"true"
76
* eval db.writeln('"757a7c50-540d-4105-9135-73f09f700743","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"757a7c50-540d-4105-9135-73f09f700743","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"757a7c50-540d-4105-9135-73f09f700743","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.259:82]
7b8f44b5-6eae-4113-a835-84b8678c3dd5
ms: 908
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:21.533 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7b8f44b5-6eae-4113-a835-84b8678c3dd5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7b8f44b5-6eae-4113-a835-84b8678c3dd5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:22.417 [print] https://service.pdok.nl/rce/ps-ch/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:22.418 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:22.419 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:22.419 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
18
56
* print organisationpath
0
04:52:22.437 [print] Beheer PDOK
57
* print operateson
0
04:52:22.438 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:22.439 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:22.440 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:22.441 [print] "true";"true"
76
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.260:82]
33f3b24a-0b34-4153-9930-726d575a04d1
ms: 876
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:21.597 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '33f3b24a-0b34-4153-9930-726d575a04d1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
862
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '33f3b24a-0b34-4153-9930-726d575a04d1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:22.467 [print] https://service.pdok.nl/provincies/aardkundige-waarden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:22.468 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:22.469 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:22.469 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:22.470 [print] Beheer PDOK
57
* print operateson
0
04:52:22.470 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f002bfc5-7d87-46b6-819e-8415422b65c9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:22.472 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:22.473 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:22.474 [print] "true";"true"
76
* eval db.writeln('"33f3b24a-0b34-4153-9930-726d575a04d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"33f3b24a-0b34-4153-9930-726d575a04d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"33f3b24a-0b34-4153-9930-726d575a04d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.261:82]
5117ebc1-5a63-439b-b3ca-43b80be804fb
ms: 898
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:22.326 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5117ebc1-5a63-439b-b3ca-43b80be804fb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5117ebc1-5a63-439b-b3ca-43b80be804fb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:23.217 [print] https://service.pdok.nl/kadaster/ad/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:23.217 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:23.218 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:52:23.220 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:23.221 [print] Beheer PDOK
57
* print operateson
0
04:52:23.221 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a5f961e9-ebdd-41e2-b8e8-ab33ed340a83#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:23.222 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:23.223 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:23.224 [print] "true";"true"
76
* eval db.writeln('"5117ebc1-5a63-439b-b3ca-43b80be804fb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5117ebc1-5a63-439b-b3ca-43b80be804fb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5117ebc1-5a63-439b-b3ca-43b80be804fb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.262:82]
101a2cc7-bb53-4a16-98f9-bab1f4745b01
ms: 917
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:22.366 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '101a2cc7-bb53-4a16-98f9-bab1f4745b01'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
901
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '101a2cc7-bb53-4a16-98f9-bab1f4745b01'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:23.276 [print] https:\/\/service.pdok.nl\/rce\/ps-ch\/wfs\/v1_0?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:23.277 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:23.278 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:23.278 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:23.279 [print] Beheer PDOK
57
* print operateson
0
04:52:23.279 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:23.281 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-interoperable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/availability";"urn:ogc:def:uom:OGC::percent";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/performance";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/inspire.ec.europa.eu\/metadata-codelist\/QualityOfServiceCriteria\/capacity";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:23.282 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de interoperable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:23.283 [print] "true";"true";"true"
76
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.263:82]
f00cd4f5-03e7-494f-8410-d07acf2247b1
ms: 904
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:22.444 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f00cd4f5-03e7-494f-8410-d07acf2247b1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
887
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f00cd4f5-03e7-494f-8410-d07acf2247b1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:23.341 [print] https://service.pdok.nl/rvo/mosselenoesterhabitats/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:23.342 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:23.343 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:23.343 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:23.344 [print] Beheer PDOK
57
* print operateson
0
04:52:23.344 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3d59fd06-9aec-4744-91e7-65e119f74569#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:23.346 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:23.347 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:23.348 [print] "true";"true"
76
* eval db.writeln('"f00cd4f5-03e7-494f-8410-d07acf2247b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f00cd4f5-03e7-494f-8410-d07acf2247b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f00cd4f5-03e7-494f-8410-d07acf2247b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.264:82]
3e65fa1b-9bb1-41bd-9760-76962751b839
ms: 915
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:22.477 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3e65fa1b-9bb1-41bd-9760-76962751b839'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
902
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3e65fa1b-9bb1-41bd-9760-76962751b839'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:23.387 [print] https://service.pdok.nl/rws/verkeersscheidingsstelsel/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:23.388 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:23.389 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:23.389 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:23.389 [print] Beheer PDOK
57
* print operateson
0
04:52:23.390 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:23.391 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:23.392 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:23.392 [print] "true";"true"
76
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.265:82]
a2724dae-ebad-4a07-9405-49bddfde3368
ms: 914
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:23.228 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a2724dae-ebad-4a07-9405-49bddfde3368'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a2724dae-ebad-4a07-9405-49bddfde3368'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:24.129 [print] https://service.pdok.nl/rws/verkeersscheidingsstelsel/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
3
50
* print protocol1
1
04:52:24.133 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:24.134 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:24.134 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:24.135 [print] Beheer PDOK
57
* print operateson
1
04:52:24.137 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:24.139 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:24.140 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:24.141 [print] "true";"true";"true"
76
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.266:82]
d556f31b-97f1-467f-9451-096004a30067
ms: 899
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:23.286 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd556f31b-97f1-467f-9451-096004a30067'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd556f31b-97f1-467f-9451-096004a30067'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:24.177 [print] https://service.pdok.nl/kadaster/wkpb/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:24.178 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:24.178 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:24.178 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:24.179 [print] Beheer PDOK
57
* print operateson
0
04:52:24.179 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5d2ffea6-e7c5-4e29-9474-c13718828779#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:24.181 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs";"urn:ogc:def:uom:OGC::percent";"http:\/\/www.opengis.net\/def\/uom\/SI\/second";"http:\/\/www.opengis.net\/def\/uom\/OGC\/1.0\/unity"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
3
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:24.184 [print] "Conform verordening";"De service voldoet aan de requirements van de invocable conformance class";"is conform Web Feature Service - 2.0 specificatie";"Beschikbaarheid op jaarbasis; uitgedrukt in percentage in tijd";"Gemiddelde response tijd; uitgedrukt in seconden";"Maximum aantal gelijktijdige requests per seconde die aan de performance criteria voldoen; uitgedrukt als aantal requests per seconde"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:24.185 [print] "true";"true";"true"
76
* eval db.writeln('"d556f31b-97f1-467f-9451-096004a30067","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d556f31b-97f1-467f-9451-096004a30067","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d556f31b-97f1-467f-9451-096004a30067","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.267:82]
56a3a4f1-c1a0-4eb7-9a2b-b84e41f8903b
ms: 909
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:23.352 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '56a3a4f1-c1a0-4eb7-9a2b-b84e41f8903b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
898
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '56a3a4f1-c1a0-4eb7-9a2b-b84e41f8903b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:24.257 [print] https://service.pdok.nl/kadaster/wkpb/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:24.257 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:24.258 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:24.258 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:24.259 [print] Beheer PDOK
57
* print operateson
0
04:52:24.259 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5d2ffea6-e7c5-4e29-9474-c13718828779#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:24.260 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:24.261 [print] "Conform verordening";"Conform technische specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:24.261 [print] "true";"true"
76
* eval db.writeln('"56a3a4f1-c1a0-4eb7-9a2b-b84e41f8903b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"56a3a4f1-c1a0-4eb7-9a2b-b84e41f8903b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"56a3a4f1-c1a0-4eb7-9a2b-b84e41f8903b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.268:82]
8dcae920-002d-451d-9cef-cd4498358770
ms: 882
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:23.395 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8dcae920-002d-451d-9cef-cd4498358770'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
871
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8dcae920-002d-451d-9cef-cd4498358770'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:24.273 [print] https://service.pdok.nl/rvo/mosselenoesterhabitats/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:24.273 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:24.274 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:24.274 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:52:24.274 [print] Beheer PDOK
57
* print operateson
0
04:52:24.275 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3d59fd06-9aec-4744-91e7-65e119f74569#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:24.276 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:24.276 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:24.277 [print] "true";"true"
76
* eval db.writeln('"8dcae920-002d-451d-9cef-cd4498358770","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8dcae920-002d-451d-9cef-cd4498358770","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8dcae920-002d-451d-9cef-cd4498358770","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.269:82]
57844c27-ff48-4e0b-9321-174d83829a19
ms: 960
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:24.145 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '57844c27-ff48-4e0b-9321-174d83829a19'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
946
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '57844c27-ff48-4e0b-9321-174d83829a19'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:25.098 [print] https://service.pdok.nl/provincies/wet-ammoniak-veehouderij-gebieden/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:25.099 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:25.100 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:25.100 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:25.101 [print] Beheer PDOK
57
* print operateson
0
04:52:25.101 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:25.102 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:25.103 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:25.104 [print] "true";"true"
76
* eval db.writeln('"57844c27-ff48-4e0b-9321-174d83829a19","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"57844c27-ff48-4e0b-9321-174d83829a19","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"57844c27-ff48-4e0b-9321-174d83829a19","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.270:82]
82a98057-861b-4c69-9b8e-fe1a7d7bdd29
ms: 930
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:24.188 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '82a98057-861b-4c69-9b8e-fe1a7d7bdd29'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
917
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '82a98057-861b-4c69-9b8e-fe1a7d7bdd29'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:52:25.113 [print] https://service.pdok.nl/provincies/provinciaal-landschapsbeleid/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:25.114 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:25.115 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:25.115 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:25.116 [print] Beheer PDOK
57
* print operateson
0
04:52:25.116 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=60a2a7c2-d5b3-4ad5-b562-c448695357fb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:25.117 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:25.118 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:25.119 [print] "true";"true"
76
* eval db.writeln('"82a98057-861b-4c69-9b8e-fe1a7d7bdd29","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"82a98057-861b-4c69-9b8e-fe1a7d7bdd29","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"82a98057-861b-4c69-9b8e-fe1a7d7bdd29","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.271:82]
7681eb19-a914-4dc7-9208-c2a131dca06d
ms: 971
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:24.264 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7681eb19-a914-4dc7-9208-c2a131dca06d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
957
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7681eb19-a914-4dc7-9208-c2a131dca06d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:25.229 [print] https:\/\/service.pdok.nl\/rws\/kaderrichtlijnwater\/wms\/v1_0?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:25.230 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:25.230 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:25.231 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:25.231 [print] Beheer PDOK
57
* print operateson
1
04:52:25.232 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbeag#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbead#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:25.233 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:25.234 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:25.235 [print] "true";"true"
76
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.272:82]
5523cfd7-a72c-409e-a0c7-89b858aafa64
ms: 980
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:24.281 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5523cfd7-a72c-409e-a0c7-89b858aafa64'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
969
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5523cfd7-a72c-409e-a0c7-89b858aafa64'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:25.256 [print] https://service.pdok.nl/bzk/bro-environmental-monitoring-facilities/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:25.257 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:25.257 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:25.257 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:25.258 [print] Beheer PDOK
57
* print operateson
0
04:52:25.258 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:25.259 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:25.260 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:25.261 [print] "true";"true"
76
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.273:82]
e6c18185-719e-4729-8131-798dd9a69e8d
ms: 910
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:25.107 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
5
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e6c18185-719e-4729-8131-798dd9a69e8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e6c18185-719e-4729-8131-798dd9a69e8d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:26.013 [print] https://service.pdok.nl/provincies/zwemwater-provinciaal-rijkswateren/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:26.013 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:26.014 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:26.014 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:26.015 [print] Beheer PDOK
57
* print operateson
0
04:52:26.015 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:26.016 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:26.017 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:26.018 [print] "true";"true"
76
* eval db.writeln('"e6c18185-719e-4729-8131-798dd9a69e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e6c18185-719e-4729-8131-798dd9a69e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e6c18185-719e-4729-8131-798dd9a69e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.274:82]
4805aac3-9a8d-4fcd-851b-88c7b3d342e2
ms: 958
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:25.121 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4805aac3-9a8d-4fcd-851b-88c7b3d342e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
945
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4805aac3-9a8d-4fcd-851b-88c7b3d342e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:26.073 [print] https://service.pdok.nl/kadaster/sr/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:26.074 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:26.075 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:26.075 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:26.076 [print] Beheer PDOK
57
* print operateson
0
04:52:26.076 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:26.078 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:26.079 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:26.080 [print] "true";"true"
76
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.275:82]
a6341e75-0dff-4948-9317-433324ab483b
ms: 891
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:25.238 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a6341e75-0dff-4948-9317-433324ab483b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a6341e75-0dff-4948-9317-433324ab483b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:26.125 [print] https://service.pdok.nl/provincies/natuurnetwerk-nederland/wms/v1_0?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:26.126 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:26.126 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:26.126 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:26.127 [print] Beheer PDOK
57
* print operateson
0
04:52:26.127 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c7d8d77b-8c47-4309-8c58-9b12b086407f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:26.128 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:26.129 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:26.130 [print] "true";"true"
76
* eval db.writeln('"a6341e75-0dff-4948-9317-433324ab483b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a6341e75-0dff-4948-9317-433324ab483b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a6341e75-0dff-4948-9317-433324ab483b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.276:82]
94e5b115-bece-4140-99ed-93b8f363948e
ms: 912
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:25.264 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
2
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '94e5b115-bece-4140-99ed-93b8f363948e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
898
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '94e5b115-bece-4140-99ed-93b8f363948e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:26.170 [print] https://service.pdok.nl/rws/ahn/wms/v1_0?SERVICE=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:26.171 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:26.171 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:26.171 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:26.172 [print] Beheer PDOK
57
* print operateson
0
04:52:26.172 [print] ["https:\/\/ngr.acceptatie.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification","https:\/\/ngr.acceptatie.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931g#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:26.173 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:26.174 [print] "Conform verordening";"Conform technische specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:26.175 [print] "true";"true"
76
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.277:82]
dd49e02c-ea87-4ffc-89dd-f888608d95b7
ms: 904
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:26.021 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dd49e02c-ea87-4ffc-89dd-f888608d95b7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
875
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dd49e02c-ea87-4ffc-89dd-f888608d95b7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
17
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:26.920 [print] https://service.pdok.nl/rvo/nationaleparken/wms/v2_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:26.920 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:26.921 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:26.921 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:26.922 [print] Beheer PDOK
57
* print operateson
0
04:52:26.922 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:26.923 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:26.924 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:26.925 [print] "true";"true"
76
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.278:82]
b87a0095-2ad7-4dbb-81a1-fed060df79e1
ms: 891
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:26.083 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b87a0095-2ad7-4dbb-81a1-fed060df79e1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b87a0095-2ad7-4dbb-81a1-fed060df79e1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:26.969 [print] https://service.pdok.nl/rvo/nationaleparken/wfs/v2_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:26.970 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:26.970 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:26.970 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:26.971 [print] Beheer PDOK
57
* print operateson
0
04:52:26.971 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:26.972 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:26.973 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:26.974 [print] "true";"true"
76
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.279:82]
b4ae5b2c-f557-4a30-bbf2-c2681a544f32
ms: 889
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:26.132 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b4ae5b2c-f557-4a30-bbf2-c2681a544f32'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
869
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4ae5b2c-f557-4a30-bbf2-c2681a544f32'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:27.012 [print] https://service.pdok.nl/rws/vin/wfs/v1_0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:52:27.013 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:52:27.015 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:27.015 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:27.016 [print] Beheer PDOK
57
* print operateson
1
04:52:27.017 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:27.019 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services";"";"";""
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:27.020 [print] "Conform verordening";"De service voldoet aan de requirements van de invocable conformance class";"Conform technische specificatie";"";"";""
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:27.021 [print] "true";"true";"true"
76
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.280:82]
4074b3c3-ca85-45ad-bc0d-b5fca8540c0a
ms: 881
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:26.178 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4074b3c3-ca85-45ad-bc0d-b5fca8540c0a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
866
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4074b3c3-ca85-45ad-bc0d-b5fca8540c0a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:27.051 [print] https://service.pdok.nl/rws/vin/wms/v1_0?request=GetCapabilities&service=WMS&version=1.3.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:27.052 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:27.053 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:27.053 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:27.054 [print] Beheer PDOK
57
* print operateson
0
04:52:27.055 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:27.056 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:27.057 [print] "Conform verordening";"Conform technische specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:27.058 [print] "true";"true"
76
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.281:82]
2650d49b-7d9a-49b5-b748-a0372cd9b5cf
ms: 904
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:26.928 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2650d49b-7d9a-49b5-b748-a0372cd9b5cf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2650d49b-7d9a-49b5-b748-a0372cd9b5cf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:27.826 [print] https:\/\/service.pdok.nl\/hwh\/wsdiensteninspire\/wms\/v1_0?service=wms&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:27.827 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:27.827 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:27.828 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:27.828 [print] Beheer PDOK
57
* print operateson
0
04:52:27.828 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=bffcd5d9-02b4-4e7d-991f-a386611cad84#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:27.830 [print] https://inspire.ec.europa.eu/documents/technical-guidance-implementation-inspire-view-services-1
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:27.831 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"conform specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:27.831 [print] "true";"true"
76
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.282:82]
f7bcefa1-6878-4eb7-b65a-d19b23b49f96
ms: 904
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:26.977 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f7bcefa1-6878-4eb7-b65a-d19b23b49f96'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
889
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f7bcefa1-6878-4eb7-b65a-d19b23b49f96'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:27.874 [print] https://service.pdok.nl/hwh/administratieve-eenheden/waterschapsgrenzen/wms/v1_0?service=wms&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:27.874 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:52:27.876 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:27.876 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
04:52:27.878 [print] Beheer PDOK
57
* print operateson
0
04:52:27.878 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d4ec7e6-50ae-4c71-bd20-5b9211e2135f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:27.879 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:27.880 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:27.880 [print] "true";"true"
76
* eval db.writeln('"f7bcefa1-6878-4eb7-b65a-d19b23b49f96","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f7bcefa1-6878-4eb7-b65a-d19b23b49f96","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f7bcefa1-6878-4eb7-b65a-d19b23b49f96","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.283:82]
3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd
ms: 897
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:27.025 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
882
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:27.915 [print] https:\/\/service.pdok.nl\/kadaster\/rdinfo\/wfs\/v1_0?request=getcapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:27.916 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:27.917 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:27.917 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:27.918 [print] Beheer PDOK
57
* print operateson
0
04:52:27.918 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=29c17585-e702-463f-a5dc-99d34b17d333#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:27.920 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:27.921 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:27.922 [print] "true";"true"
76
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.284:82]
609d0c9e-173f-4f90-b020-c91ab3a0b6ef
ms: 906
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:27.062 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '609d0c9e-173f-4f90-b020-c91ab3a0b6ef'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
893
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '609d0c9e-173f-4f90-b020-c91ab3a0b6ef'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:27.963 [print] https:\/\/service.pdok.nl\/kadaster\/rdinfo\/wms\/v1_0?request=getcapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:27.964 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:27.964 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:27.964 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:27.965 [print] Beheer PDOK
57
* print operateson
0
04:52:27.965 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=29c17585-e702-463f-a5dc-99d34b17d333#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:27.966 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:27.967 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:27.968 [print] "true";"true"
76
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.285:82]
deb81ebe-c7a7-42ba-bc21-f07cd348c3e8
ms: 899
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:27.834 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'deb81ebe-c7a7-42ba-bc21-f07cd348c3e8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
887
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'deb81ebe-c7a7-42ba-bc21-f07cd348c3e8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:28.728 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw-inspire?request=GetCapabilities&Service=CSW&Version=2.0.1
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:28.729 [print] OGC:CSW
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:28.730 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:28.730 [print] OGC:CSW
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:28.730 [print] Beheer PDOK
57
* print operateson
0
04:52:28.730 [print] #notpresent
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:28.732 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-discovery-services-0"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:28.733 [print] "Deze service is conform INSPIRE richtlijn betreffende diensten met betrekking tot ruimtelijke gegevens";"Deze service is conform de Technical Guidance for INSPIRE Discovery Services"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:28.734 [print] "true";"true"
76
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.286:82]
710a6a9b-c09f-4660-b15a-2d5bee27e7e3
ms: 900
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:27.883 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '710a6a9b-c09f-4660-b15a-2d5bee27e7e3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '710a6a9b-c09f-4660-b15a-2d5bee27e7e3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:28.778 [print] https://service.pdok.nl/cbs/gebiedsindelingen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:28.779 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:28.779 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:28.780 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:28.780 [print] Beheer PDOK
57
* print operateson
0
04:52:28.780 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:28.781 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:28.782 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:28.783 [print] "true";"true"
76
* eval db.writeln('"710a6a9b-c09f-4660-b15a-2d5bee27e7e3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"710a6a9b-c09f-4660-b15a-2d5bee27e7e3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"710a6a9b-c09f-4660-b15a-2d5bee27e7e3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.287:82]
47470f53-e0aa-45f3-ada3-ddf130dd54af
ms: 906
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:27.925 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '47470f53-e0aa-45f3-ada3-ddf130dd54af'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '47470f53-e0aa-45f3-ada3-ddf130dd54af'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:28.825 [print] https://service.pdok.nl/cbs/wijkenbuurten/2021/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:28.826 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:28.826 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:28.827 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:28.827 [print] Beheer PDOK
57
* print operateson
0
04:52:28.828 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:28.829 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:28.830 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:28.831 [print] "true";"true"
76
* eval db.writeln('"47470f53-e0aa-45f3-ada3-ddf130dd54af","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"47470f53-e0aa-45f3-ada3-ddf130dd54af","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"47470f53-e0aa-45f3-ada3-ddf130dd54af","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.288:82]
931b1a00-ad24-4eed-a73c-cb5441056136
ms: 872
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:27.971 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '931b1a00-ad24-4eed-a73c-cb5441056136'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
859
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '931b1a00-ad24-4eed-a73c-cb5441056136'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:28.837 [print] https://service.pdok.nl/rvo/nationaleparken/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:28.837 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:28.838 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:28.838 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:28.839 [print] Beheer PDOK
57
* print operateson
0
04:52:28.839 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:28.841 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:28.842 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:28.842 [print] "true";"true"
76
* eval db.writeln('"931b1a00-ad24-4eed-a73c-cb5441056136","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"931b1a00-ad24-4eed-a73c-cb5441056136","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"931b1a00-ad24-4eed-a73c-cb5441056136","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.289:82]
71b8214f-7525-45bd-bdee-2c60f32a1725
ms: 906
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:28.736 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '71b8214f-7525-45bd-bdee-2c60f32a1725'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '71b8214f-7525-45bd-bdee-2c60f32a1725'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:29.637 [print] https://service.pdok.nl/rws/nwbwegen/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:29.638 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:29.638 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:29.638 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:29.639 [print] Beheer PDOK
57
* print operateson
0
04:52:29.639 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:29.640 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:29.641 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:29.642 [print] "true";"true"
76
* eval db.writeln('"71b8214f-7525-45bd-bdee-2c60f32a1725","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"71b8214f-7525-45bd-bdee-2c60f32a1725","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"71b8214f-7525-45bd-bdee-2c60f32a1725","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.290:82]
7a748a59-36f4-475b-9647-402b5ce89a1c
ms: 890
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:28.786 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7a748a59-36f4-475b-9647-402b5ce89a1c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
878
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7a748a59-36f4-475b-9647-402b5ce89a1c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:29.671 [print] https://service.pdok.nl/kadaster/lc/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:29.671 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:29.672 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:29.672 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:29.673 [print] Beheer PDOK
57
* print operateson
0
04:52:29.673 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:29.674 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:29.674 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:29.675 [print] "true";"true"
76
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.291:82]
b5ee6914-04bd-4c7e-a180-242371ae40d9
ms: 911
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:28.834 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b5ee6914-04bd-4c7e-a180-242371ae40d9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
897
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b5ee6914-04bd-4c7e-a180-242371ae40d9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:29.739 [print] https://data.rivm.nl/data/inspire/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:29.740 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:29.741 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:29.741 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:29.742 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:29.743 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d3c9efd6-fca7-49d6-92bb-5f507abece90#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:29.745 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:29.746 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"notEvaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:29.746 [print] "false";"true";"true"
76
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.292:82]
3262e40f-13d9-47a5-97c0-e461cf837a87
ms: 936
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:28.845 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3262e40f-13d9-47a5-97c0-e461cf837a87'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
911
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3262e40f-13d9-47a5-97c0-e461cf837a87'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:29.763 [print] https://service.pdok.nl/rvo/beschermdegebieden/natura2000/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:29.764 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:29.764 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:29.764 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
12
56
* print organisationpath
0
04:52:29.776 [print] Beheer PDOK
57
* print operateson
0
04:52:29.776 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=280ed37a-b8d2-4ac5-8567-04d84fad3a41#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:29.779 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:29.780 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:29.781 [print] "true";"true"
76
* eval db.writeln('"3262e40f-13d9-47a5-97c0-e461cf837a87","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3262e40f-13d9-47a5-97c0-e461cf837a87","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3262e40f-13d9-47a5-97c0-e461cf837a87","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.293:82]
224d93f6-0e4e-41fe-8424-1ab11a6c55ed
ms: 892
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:29.646 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '224d93f6-0e4e-41fe-8424-1ab11a6c55ed'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
878
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '224d93f6-0e4e-41fe-8424-1ab11a6c55ed'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:30.532 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:30.533 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:30.534 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:30.534 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:30.534 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:30.535 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:30.536 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:30.537 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:30.537 [print] "true";"true";"true"
76
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.294:82]
5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0
ms: 939
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:29.678 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
922
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:30.608 [print] https://service.pdok.nl/provincies/zwemwater-provinciaal-rijkswateren/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:30.609 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:30.610 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:30.611 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:30.612 [print] Beheer PDOK
57
* print operateson
1
04:52:30.612 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:30.614 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:30.616 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:30.616 [print] "true";"true"
76
* eval db.writeln('"5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5a6c27b9-a7ed-4461-bd8c-4d022d04f1b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.295:82]
e222648d-d19e-4a99-a67d-2af1c9aabd75
ms: 993
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:29.750 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e222648d-d19e-4a99-a67d-2af1c9aabd75'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
943
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e222648d-d19e-4a99-a67d-2af1c9aabd75'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
4
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
3
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
11
45
* print connectUrl
1
04:52:30.719 [print] https://service.pdok.nl/kadaster/cp/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
2
04:52:30.721 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:52:30.723 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
2
04:52:30.725 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
6
04:52:30.732 [print] Beheer PDOK
57
* print operateson
5
04:52:30.736 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e80ad426-1392-4349-9f80-14dae5f1bf57#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:30.739 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
2
04:52:30.741 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:52:30.742 [print] "true";"true"
76
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.296:82]
a6a249b9-70fe-4e47-bbe2-c864d712ed5b
ms: 960
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:29.784 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a6a249b9-70fe-4e47-bbe2-c864d712ed5b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
924
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a6a249b9-70fe-4e47-bbe2-c864d712ed5b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
9
45
* print connectUrl
1
04:52:30.727 [print] https://service.pdok.nl/cbs/vierkantstatistieken500m/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:52:30.729 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:52:30.730 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:30.730 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:52:30.732 [print] Beheer PDOK
57
* print operateson
1
04:52:30.732 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:30.735 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
5
04:52:30.740 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
3
04:52:30.744 [print] "true";"true"
76
* eval db.writeln('"a6a249b9-70fe-4e47-bbe2-c864d712ed5b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a6a249b9-70fe-4e47-bbe2-c864d712ed5b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a6a249b9-70fe-4e47-bbe2-c864d712ed5b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.297:82]
fa29a28a-57ec-4e4c-82f3-08ddeaf19e61
ms: 894
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:30.540 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fa29a28a-57ec-4e4c-82f3-08ddeaf19e61'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
880
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fa29a28a-57ec-4e4c-82f3-08ddeaf19e61'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:31.430 [print] https://service.pdok.nl/rws/digitaaltopografischbestand/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:31.431 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:31.431 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:31.431 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:31.432 [print] Beheer PDOK
57
* print operateson
0
04:52:31.432 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b137b8-2317-42c2-aced-204c4216d68d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:31.433 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:31.434 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:31.435 [print] "true";"true"
76
* eval db.writeln('"fa29a28a-57ec-4e4c-82f3-08ddeaf19e61","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fa29a28a-57ec-4e4c-82f3-08ddeaf19e61","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fa29a28a-57ec-4e4c-82f3-08ddeaf19e61","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.298:82]
28e6b45e-7627-454d-99a0-4119bbe1678d
ms: 891
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:30.620 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '28e6b45e-7627-454d-99a0-4119bbe1678d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
878
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '28e6b45e-7627-454d-99a0-4119bbe1678d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:31.505 [print] https://service.pdok.nl/cbs/bestandbodemgebruik/2017/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:31.506 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:31.507 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:31.507 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:52:31.508 [print] Beheer PDOK
57
* print operateson
0
04:52:31.508 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9bf1ce1-5197-409e-b19e-340e50afafc4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:31.510 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:31.510 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:31.511 [print] "true";"true"
76
* eval db.writeln('"28e6b45e-7627-454d-99a0-4119bbe1678d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"28e6b45e-7627-454d-99a0-4119bbe1678d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"28e6b45e-7627-454d-99a0-4119bbe1678d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.299:82]
ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f
ms: 896
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:30.756 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:31.648 [print] https://service.pdok.nl/provincies/begrenzingen-vergunde-ontgrondingsgebieden-zand-grindwinning/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:31.649 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:31.649 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:31.649 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:31.650 [print] Beheer PDOK
57
* print operateson
0
04:52:31.650 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58e7dc38-a498-4852-b4ef-908f5baa9056#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:31.651 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:31.652 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:31.652 [print] "true";"true"
76
* eval db.writeln('"ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ab1c5d6a-c40f-4277-a9c0-a3e54f803c0f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.300:82]
0080a9ce-b836-45bc-8fdf-07dcbe97101d
ms: 935
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:30.754 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
8
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0080a9ce-b836-45bc-8fdf-07dcbe97101d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
914
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0080a9ce-b836-45bc-8fdf-07dcbe97101d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:31.684 [print] https://service.pdok.nl/rce/ps-ch/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:31.684 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:31.685 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:31.685 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:31.686 [print] Beheer PDOK
57
* print operateson
0
04:52:31.686 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:31.687 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:31.688 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:31.689 [print] "true";"true"
76
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.301:82]
13e4dff0-1e80-11e2-81c1-0800200c9a66
ms: 895
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:31.438 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '13e4dff0-1e80-11e2-81c1-0800200c9a66'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '13e4dff0-1e80-11e2-81c1-0800200c9a66'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:32.328 [print] https://www.gdngeoservices.nl/inspire/downloads/services.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:32.329 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:32.329 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:32.329 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:32.330 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:52:32.330 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=11a292bd-9022-4a9f-b1bf-02f5c89ad74a&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:32.331 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:32.332 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:32.332 [print] "true";"true"
76
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.302:82]
1196d687-f42c-4992-8030-1b875d62bc74
ms: 900
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:31.514 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1196d687-f42c-4992-8030-1b875d62bc74'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
889
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1196d687-f42c-4992-8030-1b875d62bc74'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:32.410 [print] https://service.pdok.nl/rws/weggeg/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:32.410 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:32.411 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:32.411 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:32.412 [print] Beheer PDOK
57
* print operateson
0
04:52:32.412 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=abaf1e22-55aa-4a11-a855-7ac963e4a82b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:32.413 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:32.413 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:32.414 [print] "true";"true"
76
* eval db.writeln('"1196d687-f42c-4992-8030-1b875d62bc74","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1196d687-f42c-4992-8030-1b875d62bc74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1196d687-f42c-4992-8030-1b875d62bc74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.303:82]
243c6401-9ed1-4cdd-b9a7-caff08813ce4
ms: 896
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:31.656 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '243c6401-9ed1-4cdd-b9a7-caff08813ce4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '243c6401-9ed1-4cdd-b9a7-caff08813ce4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:32.546 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-EEZ-volgens-UNCLOS-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:32.547 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:32.548 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:32.548 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:32.548 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:52:32.549 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3296af93-cc8c-4a24-9356-1f68a57db712#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:32.550 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:32.550 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:32.551 [print] "true";"true"
76
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.304:82]
641a0f48-872b-4470-b130-e3d28e6bfdfb
ms: 915
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:31.691 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '641a0f48-872b-4470-b130-e3d28e6bfdfb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
902
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '641a0f48-872b-4470-b130-e3d28e6bfdfb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:32.600 [print] https://service.pdok.nl/rws/richtlijnmarienestrategienederland/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:32.601 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:32.602 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:32.602 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:32.603 [print] Beheer PDOK
57
* print operateson
0
04:52:32.603 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=353108a0-f0f8-4f8e-9d0e-60f18dfda169#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a33c92d0-e29b-43cb-b681-f942ef597331#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=604d241d-6792-4286-bbef-44b2ce5c38c1#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:32.605 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:32.605 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:32.606 [print] "true";"true"
76
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.305:82]
aa31349f-9607-4fdb-83ac-732f0b942adc
ms: 895
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:32.335 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'aa31349f-9607-4fdb-83ac-732f0b942adc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
885
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'aa31349f-9607-4fdb-83ac-732f0b942adc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:33.226 [print] https://service.pdok.nl/provincies/grondwaterbeschermingsgebieden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:33.227 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:33.227 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:33.227 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:33.228 [print] Beheer PDOK
57
* print operateson
0
04:52:33.228 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=666554ed-5106-487d-b4bf-69fbd888a6d7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:33.229 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:33.230 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:33.230 [print] "true";"true"
76
* eval db.writeln('"aa31349f-9607-4fdb-83ac-732f0b942adc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"aa31349f-9607-4fdb-83ac-732f0b942adc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"aa31349f-9607-4fdb-83ac-732f0b942adc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.306:82]
88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6
ms: 893
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:32.417 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
882
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:33.305 [print] https://service.pdok.nl/kadaster/hy/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:33.306 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:33.306 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:33.306 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:52:33.307 [print] Beheer PDOK
57
* print operateson
0
04:52:33.307 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:33.308 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:33.309 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:33.309 [print] "true";"true"
76
* eval db.writeln('"88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.307:82]
f8b4a0b9-9687-435e-a271-c8403dec630e
ms: 890
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:32.554 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f8b4a0b9-9687-435e-a271-c8403dec630e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f8b4a0b9-9687-435e-a271-c8403dec630e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:33.439 [print] https://service.pdok.nl/rvo/habitatrichtlijnsoorten/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:33.440 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:33.441 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:33.441 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:33.441 [print] Beheer PDOK
57
* print operateson
0
04:52:33.441 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=28c4780a-1a44-4376-b283-14a50a481729#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:33.442 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:33.443 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:33.444 [print] "true";"true"
76
* eval db.writeln('"f8b4a0b9-9687-435e-a271-c8403dec630e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f8b4a0b9-9687-435e-a271-c8403dec630e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f8b4a0b9-9687-435e-a271-c8403dec630e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.308:82]
cc6f76b2-f28e-4eb3-8d89-d1a6a135c010
ms: 910
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:32.609 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cc6f76b2-f28e-4eb3-8d89-d1a6a135c010'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cc6f76b2-f28e-4eb3-8d89-d1a6a135c010'
3
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:33.512 [print] https://service.pdok.nl/rws/nhi/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:33.513 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:33.513 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:33.513 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:33.514 [print] Beheer PDOK
57
* print operateson
0
04:52:33.514 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:33.517 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:33.518 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:33.519 [print] "true";"true"
76
* eval db.writeln('"cc6f76b2-f28e-4eb3-8d89-d1a6a135c010","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cc6f76b2-f28e-4eb3-8d89-d1a6a135c010","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cc6f76b2-f28e-4eb3-8d89-d1a6a135c010","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.309:82]
1619798e-4254-4b85-8562-dc2a25338f48
ms: 880
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:33.233 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1619798e-4254-4b85-8562-dc2a25338f48'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
869
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1619798e-4254-4b85-8562-dc2a25338f48'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:34.109 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:34.109 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:34.110 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:34.110 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:34.111 [print] Beheer PDOK
57
* print operateson
0
04:52:34.111 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:34.112 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:34.113 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:34.113 [print] "true";"true"
76
* eval db.writeln('"1619798e-4254-4b85-8562-dc2a25338f48","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1619798e-4254-4b85-8562-dc2a25338f48","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1619798e-4254-4b85-8562-dc2a25338f48","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.310:82]
88a337a9-bed3-4d79-80fa-ff4b45990d7d
ms: 910
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:33.312 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '88a337a9-bed3-4d79-80fa-ff4b45990d7d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
897
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88a337a9-bed3-4d79-80fa-ff4b45990d7d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:34.217 [print] https://service.pdok.nl/cbs/wijkenbuurten/2020/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:34.217 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:34.218 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:34.218 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:34.219 [print] Beheer PDOK
57
* print operateson
0
04:52:34.219 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:34.220 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:34.221 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:34.222 [print] "true";"true"
76
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.311:82]
0017219b-fb75-47aa-a6bf-496f2514e545
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:33.446 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0017219b-fb75-47aa-a6bf-496f2514e545'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
891
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0017219b-fb75-47aa-a6bf-496f2514e545'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:34.344 [print] https://service.pdok.nl/provincies/aardkundige-waarden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:34.345 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:34.346 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:34.346 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:34.346 [print] Beheer PDOK
57
* print operateson
0
04:52:34.347 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f002bfc5-7d87-46b6-819e-8415422b65c9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:34.348 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:34.348 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:34.349 [print] "true";"true"
76
* eval db.writeln('"0017219b-fb75-47aa-a6bf-496f2514e545","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0017219b-fb75-47aa-a6bf-496f2514e545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0017219b-fb75-47aa-a6bf-496f2514e545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.312:82]
d624bfd0-8f21-44c4-a22c-0f0877a539fc
ms: 958
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:33.522 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd624bfd0-8f21-44c4-a22c-0f0877a539fc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
890
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd624bfd0-8f21-44c4-a22c-0f0877a539fc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
22
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
29
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:34.470 [print] https://service.pdok.nl/provincies/geluidzones-rondom-vliegvelden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:34.471 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:34.472 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:52:34.473 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:52:34.475 [print] Beheer PDOK
57
* print operateson
2
04:52:34.477 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=41023936-009d-48ec-a90d-c966895463c1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:34.478 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:34.480 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:52:34.481 [print] "true";"true"
76
* eval db.writeln('"d624bfd0-8f21-44c4-a22c-0f0877a539fc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d624bfd0-8f21-44c4-a22c-0f0877a539fc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d624bfd0-8f21-44c4-a22c-0f0877a539fc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.313:82]
f5a34c65-6c48-4996-8f95-ba2206d1ecb7
ms: 953
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:34.116 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f5a34c65-6c48-4996-8f95-ba2206d1ecb7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
938
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f5a34c65-6c48-4996-8f95-ba2206d1ecb7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:52:35.062 [print] https://service.pdok.nl/rvo/ps-cdda/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:35.063 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:35.064 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:35.064 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:35.065 [print] Beheer PDOK
57
* print operateson
0
04:52:35.065 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3387ef8a-9237-453a-aa4e-585d1e193550#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:35.066 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:35.067 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
1
71
* print corConformancePass
0
04:52:35.069 [print] "true";"true"
76
* eval db.writeln('"f5a34c65-6c48-4996-8f95-ba2206d1ecb7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f5a34c65-6c48-4996-8f95-ba2206d1ecb7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f5a34c65-6c48-4996-8f95-ba2206d1ecb7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.314:82]
0d7ca7bc-99de-4539-af33-70b206f29355
ms: 892
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:34.224 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0d7ca7bc-99de-4539-af33-70b206f29355'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
880
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0d7ca7bc-99de-4539-af33-70b206f29355'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:35.111 [print] https://service.pdok.nl/kadaster/adressen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:35.112 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:35.113 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:35.113 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:35.114 [print] Beheer PDOK
57
* print operateson
0
04:52:35.114 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:35.115 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:35.116 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:35.117 [print] "true";"true"
76
* eval db.writeln('"0d7ca7bc-99de-4539-af33-70b206f29355","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0d7ca7bc-99de-4539-af33-70b206f29355","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0d7ca7bc-99de-4539-af33-70b206f29355","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.315:82]
46873d16-6835-48c4-b47f-134ab0cb31fa
ms: 901
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:34.352 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '46873d16-6835-48c4-b47f-134ab0cb31fa'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
885
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '46873d16-6835-48c4-b47f-134ab0cb31fa'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:35.246 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:35.247 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:35.248 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:35.248 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:35.249 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:35.249 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:35.251 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:35.252 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:35.253 [print] "false";"false"
76
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.316:82]
6da29d3a-0e42-4b74-81ef-da707991ae07
ms: 909
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:34.485 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6da29d3a-0e42-4b74-81ef-da707991ae07'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
892
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6da29d3a-0e42-4b74-81ef-da707991ae07'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:35.386 [print] https://service.pdok.nl/cbs/wijkenbuurten/2022/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:35.387 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:35.388 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:35.388 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:35.389 [print] Beheer PDOK
57
* print operateson
0
04:52:35.390 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=70c52fd8-6b2e-42aa-873a-742711903243#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:35.392 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:35.393 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:35.394 [print] "true";"true"
76
* eval db.writeln('"6da29d3a-0e42-4b74-81ef-da707991ae07","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6da29d3a-0e42-4b74-81ef-da707991ae07","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6da29d3a-0e42-4b74-81ef-da707991ae07","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.317:82]
559f7f5b-44fc-4003-9fb5-4d8c9aff6060
ms: 951
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:35.073 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '559f7f5b-44fc-4003-9fb5-4d8c9aff6060'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
939
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '559f7f5b-44fc-4003-9fb5-4d8c9aff6060'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:36.019 [print] https://service.pdok.nl/kadaster/tn/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:36.019 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:36.020 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:36.020 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:36.021 [print] Beheer PDOK
57
* print operateson
0
04:52:36.021 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=6c06740d-058f-4a12-bb3f-bf68efd03d09#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8f45b8ef-0ce8-463a-9059-5efdcecb785c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:36.022 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:36.023 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:36.024 [print] "true";"true"
76
* eval db.writeln('"559f7f5b-44fc-4003-9fb5-4d8c9aff6060","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"559f7f5b-44fc-4003-9fb5-4d8c9aff6060","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"559f7f5b-44fc-4003-9fb5-4d8c9aff6060","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.318:82]
8fb3a06d-af1a-4da9-a769-41edf3591805
ms: 969
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:35.120 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8fb3a06d-af1a-4da9-a769-41edf3591805'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
956
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8fb3a06d-af1a-4da9-a769-41edf3591805'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:36.083 [print] https://service.pdok.nl/provincies/stiltegebieden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:36.084 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:36.084 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:36.085 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:36.085 [print] Beheer PDOK
57
* print operateson
0
04:52:36.086 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:36.087 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:36.087 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:36.088 [print] "true";"true"
76
* eval db.writeln('"8fb3a06d-af1a-4da9-a769-41edf3591805","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8fb3a06d-af1a-4da9-a769-41edf3591805","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8fb3a06d-af1a-4da9-a769-41edf3591805","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.319:82]
a0ad469d-be1b-4d38-b699-faf946666bcc
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:35.257 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a0ad469d-be1b-4d38-b699-faf946666bcc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
891
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a0ad469d-be1b-4d38-b699-faf946666bcc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:36.155 [print] https://service.pdok.nl/lv/bag/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:36.156 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:36.156 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:36.156 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:36.157 [print] Beheer PDOK
57
* print operateson
0
04:52:36.157 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:36.158 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:36.159 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:36.159 [print] "true";"true"
76
* eval db.writeln('"a0ad469d-be1b-4d38-b699-faf946666bcc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a0ad469d-be1b-4d38-b699-faf946666bcc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a0ad469d-be1b-4d38-b699-faf946666bcc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.320:82]
9ad3f0c0-9e2c-4d44-a467-b57920aa512f
ms: 890
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:35.397 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9ad3f0c0-9e2c-4d44-a467-b57920aa512f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ad3f0c0-9e2c-4d44-a467-b57920aa512f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:36.281 [print] https://service.pdok.nl/hwh/administratieve-eenheden/waterschapsgrenzen/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:36.282 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:36.283 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:36.283 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:36.284 [print] Beheer PDOK
57
* print operateson
0
04:52:36.284 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d4ec7e6-50ae-4c71-bd20-5b9211e2135f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:36.285 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:36.286 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:36.286 [print] "true";"true"
76
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.321:82]
5f0c583a-101e-45ea-b684-a056713cf811
ms: 882
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:36.026 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5f0c583a-101e-45ea-b684-a056713cf811'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
870
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5f0c583a-101e-45ea-b684-a056713cf811'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:36.904 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-baseline-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:36.904 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:36.905 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:36.905 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:36.906 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:52:36.906 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:36.907 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:36.908 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:36.909 [print] "true";"true"
76
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.322:82]
03c39474-aef9-4169-95da-9890af440b14
ms: 908
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:36.091 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '03c39474-aef9-4169-95da-9890af440b14'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
893
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '03c39474-aef9-4169-95da-9890af440b14'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:36.992 [print] https:\/\/data.rivm.nl\/geo\/inspire\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:36.993 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:36.994 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:36.994 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:36.995 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:36.995 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:36.997 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:36.998 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:36.999 [print] "true";"true"
76
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.323:82]
fa3ecd49-4571-4eb3-84f3-2865f42934b2
ms: 889
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:36.162 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fa3ecd49-4571-4eb3-84f3-2865f42934b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
877
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fa3ecd49-4571-4eb3-84f3-2865f42934b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:37.046 [print] https://acc.gdngeoservices.nl/geoserver/download/oliegas/hydrocarbons.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:37.047 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:37.047 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:37.047 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:37.048 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:52:37.048 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=b61a773c-ecad-4e60-93e9-0a4caac0b52f&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:37.049 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:37.050 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:37.051 [print] "true";"true"
76
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.324:82]
73286af2-d0f4-4a62-9455-86ffa45ef279
ms: 887
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:36.289 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '73286af2-d0f4-4a62-9455-86ffa45ef279'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '73286af2-d0f4-4a62-9455-86ffa45ef279'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:37.172 [print] https://acc.gdngeoservices.nl/geoserver/download/zout/salt.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:37.173 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:37.173 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:37.173 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:37.174 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:52:37.174 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=e3b0da1e-0664-4025-b3f5-a54d74a26450&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:37.175 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:37.176 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:37.176 [print] "true";"true"
76
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.325:82]
c0bef00c-e00c-4004-93c6-7bb8df62ec38
ms: 899
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:36.912 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c0bef00c-e00c-4004-93c6-7bb8df62ec38'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
886
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c0bef00c-e00c-4004-93c6-7bb8df62ec38'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:37.805 [print] https://service.pdok.nl/cbs/landuse/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:37.806 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:37.807 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:37.807 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:37.807 [print] Beheer PDOK
57
* print operateson
0
04:52:37.807 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6318009c-7b11-4ab9-9929-735584dfb692#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:37.809 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:37.809 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:37.810 [print] "true";"true"
76
* eval db.writeln('"c0bef00c-e00c-4004-93c6-7bb8df62ec38","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c0bef00c-e00c-4004-93c6-7bb8df62ec38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c0bef00c-e00c-4004-93c6-7bb8df62ec38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.326:82]
77971fa3-f869-4726-969a-482e0b1a8c5d
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:37.002 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '77971fa3-f869-4726-969a-482e0b1a8c5d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
890
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '77971fa3-f869-4726-969a-482e0b1a8c5d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:37.899 [print] https://acc.gdngeoservices.nl/geoserver/download/geologicalmap/geologicalmap.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:37.900 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:37.900 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:37.901 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:37.901 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:52:37.901 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:37.903 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:37.904 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:37.905 [print] "true";"true"
76
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.327:82]
0606e8cb-fa51-402c-a3be-19fd724b0a10
ms: 897
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:37.054 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0606e8cb-fa51-402c-a3be-19fd724b0a10'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
882
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0606e8cb-fa51-402c-a3be-19fd724b0a10'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:37.943 [print] https:\/\/data.rivm.nl\/geo\/inspire\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:37.944 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:37.945 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:52:37.945 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:37.946 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:37.946 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:37.948 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:37.949 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:37.950 [print] "true";"true"
76
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.328:82]
ef2a7962-8bb4-483f-ac78-851b619f357f
ms: 886
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:37.179 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ef2a7962-8bb4-483f-ac78-851b619f357f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
873
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ef2a7962-8bb4-483f-ac78-851b619f357f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:38.059 [print] https://services.rce.geovoorziening.nl/www/download/nl.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:38.060 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:38.061 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:38.061 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:38.062 [print] Rijksdienst voor het Cultureel Erfgoed
57
* print operateson
0
04:52:38.062 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6f84efeb-fc1d-4565-a721-80735ea57dbd#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=4e2ef670-cddd-11dd-ad8b-0800200c9a66#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=88a3c1ae-902e-4efa-8663-ddd836101929#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:38.063 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:38.064 [print] "Nadere uitleg bij het al dan niet volledig voldoen aan de specificatie";"Open Search mechanisme van het Nationaal Georegister functioneert nog niet naar behoren."
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:38.065 [print] "true";"false"
76
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.329:82]
01572637-b851-4cc3-b06a-56c1ae1115cc
ms: 888
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:37.813 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '01572637-b851-4cc3-b06a-56c1ae1115cc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
874
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '01572637-b851-4cc3-b06a-56c1ae1115cc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:38.694 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:38.694 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
04:52:38.696 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:38.697 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:38.697 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:38.698 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:38.699 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:38.700 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:38.701 [print] "false";"false"
76
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.330:82]
15c3c30f-0db2-4b3b-80f6-b990c8fc8225
ms: 891
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:37.908 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '15c3c30f-0db2-4b3b-80f6-b990c8fc8225'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '15c3c30f-0db2-4b3b-80f6-b990c8fc8225'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:38.794 [print] https://service.pdok.nl/hwh/hydrografie/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:38.794 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:38.795 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:38.795 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:38.796 [print] Beheer PDOK
57
* print operateson
0
04:52:38.796 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07575774-57a1-4419-bab4-6c88fdeb02b2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:38.797 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:38.798 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:38.799 [print] "true";"true"
76
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.331:82]
ff8f6da2-949e-4838-90f6-fd895a4a240f
ms: 905
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:37.957 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ff8f6da2-949e-4838-90f6-fd895a4a240f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
872
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ff8f6da2-949e-4838-90f6-fd895a4a240f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
16
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:38.853 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:38.854 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:38.855 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:38.857 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:38.858 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:38.859 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:38.860 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:38.861 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:38.863 [print] "true";"true";"true"
76
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.332:82]
5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5
ms: 892
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:38.067 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:38.954 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:38.954 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:38.955 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:38.955 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:38.956 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:38.956 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:38.957 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:38.958 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:38.959 [print] "false";"false"
76
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.333:82]
a931e334-b752-4935-8a98-00eddc443789
ms: 894
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:38.703 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a931e334-b752-4935-8a98-00eddc443789'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
877
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a931e334-b752-4935-8a98-00eddc443789'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:39.590 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:39.591 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:39.592 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:39.592 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:39.593 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:39.594 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:39.595 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:39.596 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:39.598 [print] "false";"false"
76
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.334:82]
56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9
ms: 884
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:38.802 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
871
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:39.680 [print] https://service.pdok.nl/bzk/bro-geomorfologischekaart/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:39.681 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:39.682 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:39.682 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:39.683 [print] Beheer PDOK
57
* print operateson
0
04:52:39.683 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=459231d0-7379-4f26-a444-7616e1d888f0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:39.684 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:39.685 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:39.686 [print] "true";"true"
76
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.335:82]
8a594e51-9dcf-4ef3-9f67-7d73bfd71d27
ms: 894
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:38.866 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8a594e51-9dcf-4ef3-9f67-7d73bfd71d27'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8a594e51-9dcf-4ef3-9f67-7d73bfd71d27'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:39.756 [print] https://service.pdok.nl/rvo/nationale-parken/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:39.757 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:39.757 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:39.757 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:52:39.758 [print] Beheer PDOK
57
* print operateson
0
04:52:39.758 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:39.759 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:39.759 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:39.760 [print] "true";"true"
76
* eval db.writeln('"8a594e51-9dcf-4ef3-9f67-7d73bfd71d27","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8a594e51-9dcf-4ef3-9f67-7d73bfd71d27","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8a594e51-9dcf-4ef3-9f67-7d73bfd71d27","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.336:82]
7165bb1f-fea6-4f28-b1d2-a2a92a11ea2f
ms: 898
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:38.962 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7165bb1f-fea6-4f28-b1d2-a2a92a11ea2f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
885
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7165bb1f-fea6-4f28-b1d2-a2a92a11ea2f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:39.854 [print] https://service.pdok.nl/rws/vin/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:39.855 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:39.856 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:39.856 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:39.857 [print] Beheer PDOK
57
* print operateson
0
04:52:39.857 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:39.859 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:39.859 [print] "Conform verordening";"Conform technische specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:39.860 [print] "true";"true"
76
* eval db.writeln('"7165bb1f-fea6-4f28-b1d2-a2a92a11ea2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7165bb1f-fea6-4f28-b1d2-a2a92a11ea2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7165bb1f-fea6-4f28-b1d2-a2a92a11ea2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.337:82]
08a784fe-0da8-4ede-bec9-c28fa81fc11d
ms: 892
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:39.601 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '08a784fe-0da8-4ede-bec9-c28fa81fc11d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
877
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '08a784fe-0da8-4ede-bec9-c28fa81fc11d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:40.487 [print] https://service.pdok.nl/provincies/provinciaal-landschapsbeleid/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:40.488 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:40.489 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:40.489 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:52:40.490 [print] Beheer PDOK
57
* print operateson
0
04:52:40.490 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=60a2a7c2-d5b3-4ad5-b562-c448695357fb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:40.491 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:40.492 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:40.492 [print] "true";"true"
76
* eval db.writeln('"08a784fe-0da8-4ede-bec9-c28fa81fc11d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"08a784fe-0da8-4ede-bec9-c28fa81fc11d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"08a784fe-0da8-4ede-bec9-c28fa81fc11d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.338:82]
c21c6bf5-8899-4b46-8986-0f65eca05ed0
ms: 901
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:39.689 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c21c6bf5-8899-4b46-8986-0f65eca05ed0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
886
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c21c6bf5-8899-4b46-8986-0f65eca05ed0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:40.583 [print] https://service.pdok.nl/rws/richtlijnstedelijkafvalwater/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:40.584 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:40.585 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:40.585 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:40.586 [print] Beheer PDOK
57
* print operateson
0
04:52:40.587 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=cc931834-5f9a-4106-a3a3-d5bf553b2675#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=07d78f5e-f4c4-4c92-b866-94eb2cb38516#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=917b5ba0-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=11a98cc2-2e64-4f05-ae16-b7677f8054ad#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:40.589 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:40.590 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:40.591 [print] "true";"true"
76
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.339:82]
b914aa84-1a15-4d6c-950e-00c739946029
ms: 891
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:39.763 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b914aa84-1a15-4d6c-950e-00c739946029'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
881
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b914aa84-1a15-4d6c-950e-00c739946029'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:40.650 [print] https://service.pdok.nl/rvo/restwarmte/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:40.650 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:40.651 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:40.651 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:40.652 [print] Beheer PDOK
57
* print operateson
0
04:52:40.652 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:40.653 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:40.653 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:40.654 [print] "true";"true"
76
* eval db.writeln('"b914aa84-1a15-4d6c-950e-00c739946029","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b914aa84-1a15-4d6c-950e-00c739946029","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b914aa84-1a15-4d6c-950e-00c739946029","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.340:82]
5255c080-5f4e-4f7a-8a2c-6ac9d0103288
ms: 885
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:39.863 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5255c080-5f4e-4f7a-8a2c-6ac9d0103288'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
871
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5255c080-5f4e-4f7a-8a2c-6ac9d0103288'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:40.742 [print] https:\/\/data.rivm.nl\/geo\/inspire\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:40.743 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:40.744 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:40.744 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:40.745 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:40.745 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:40.747 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:40.748 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:40.749 [print] "true";"true"
76
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.341:82]
2931d583-9633-49d3-ad38-aabea82f6751
ms: 907
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:40.495 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2931d583-9633-49d3-ad38-aabea82f6751'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
895
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2931d583-9633-49d3-ad38-aabea82f6751'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:41.397 [print] https://service.pdok.nl/bzk/bro-hydrogeology/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:41.398 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:41.398 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:41.398 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:41.399 [print] Beheer PDOK
57
* print operateson
0
04:52:41.399 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:41.400 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:41.401 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:41.402 [print] "true";"true"
76
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.342:82]
2e2c3c53-7987-4026-99fd-df107b1b9a1c
ms: 939
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:40.594 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2e2c3c53-7987-4026-99fd-df107b1b9a1c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
927
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2e2c3c53-7987-4026-99fd-df107b1b9a1c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:41.528 [print] https://service.pdok.nl/rws/nwbvaarwegen/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:41.528 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:41.529 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:41.529 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:52:41.530 [print] Beheer PDOK
57
* print operateson
0
04:52:41.530 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=00d8c7c8-98ff-4b06-8f53-b44216e6e75c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:41.531 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:41.532 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:41.532 [print] "true";"true"
76
* eval db.writeln('"2e2c3c53-7987-4026-99fd-df107b1b9a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2e2c3c53-7987-4026-99fd-df107b1b9a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2e2c3c53-7987-4026-99fd-df107b1b9a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.343:82]
037e55bd-a1dc-4fde-adfe-4610d3a3d5cb
ms: 951
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:40.657 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '037e55bd-a1dc-4fde-adfe-4610d3a3d5cb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
940
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '037e55bd-a1dc-4fde-adfe-4610d3a3d5cb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:41.603 [print] https://service.pdok.nl/cbs/pd/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:41.604 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:41.605 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:41.605 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:41.605 [print] Beheer PDOK
57
* print operateson
0
04:52:41.605 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:41.607 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:41.607 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:41.608 [print] "true";"true"
76
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.344:82]
7a4c7031-08cf-4bbf-b3dc-179a457b0674
ms: 894
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:40.751 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7a4c7031-08cf-4bbf-b3dc-179a457b0674'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
880
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7a4c7031-08cf-4bbf-b3dc-179a457b0674'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:41.638 [print] https://service.pdok.nl/cbs/statisticalunitsvector/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:41.639 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:41.640 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:41.640 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:41.641 [print] Beheer PDOK
57
* print operateson
0
04:52:41.641 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=10d1153e-778f-4995-9b6c-7c69b196cccb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:41.643 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:41.644 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:41.645 [print] "true";"true"
76
* eval db.writeln('"7a4c7031-08cf-4bbf-b3dc-179a457b0674","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7a4c7031-08cf-4bbf-b3dc-179a457b0674","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7a4c7031-08cf-4bbf-b3dc-179a457b0674","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.345:82]
2fa191f3-55df-4016-bb08-8da445b952fe
ms: 893
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:41.405 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2fa191f3-55df-4016-bb08-8da445b952fe'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
881
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2fa191f3-55df-4016-bb08-8da445b952fe'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:42.292 [print] https://service.pdok.nl/rvo/windkaart/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:42.293 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:42.294 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:42.294 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:42.294 [print] Beheer PDOK
57
* print operateson
0
04:52:42.295 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d845cef6-0e23-4212-a951-b69763e39ef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:42.296 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:42.296 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:42.297 [print] "true";"true"
76
* eval db.writeln('"2fa191f3-55df-4016-bb08-8da445b952fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2fa191f3-55df-4016-bb08-8da445b952fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2fa191f3-55df-4016-bb08-8da445b952fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.346:82]
7c664a91-1aa2-4923-9d17-6a43e4075f47
ms: 898
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:41.535 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7c664a91-1aa2-4923-9d17-6a43e4075f47'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
885
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c664a91-1aa2-4923-9d17-6a43e4075f47'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:42.427 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-Territoriale-Zee-Noordzee-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:42.428 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:42.429 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:42.429 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:42.430 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:52:42.430 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7fed469a-77e1-4545-a4cb-eedf389d851f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:42.432 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:42.433 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:42.433 [print] "true";"true"
76
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.347:82]
f95c6429-2cdf-47b8-bc2a-e614440050b8
ms: 887
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:41.611 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f95c6429-2cdf-47b8-bc2a-e614440050b8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
875
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f95c6429-2cdf-47b8-bc2a-e614440050b8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:42.492 [print] https://service.pdok.nl/rvo/beschermdegebieden/wetlands/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:42.493 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:42.494 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:42.494 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:42.495 [print] Beheer PDOK
57
* print operateson
0
04:52:42.495 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=19165027-a13a-4c19-9013-ec1fd191019d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:42.496 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:42.497 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:42.498 [print] "true";"true"
76
* eval db.writeln('"f95c6429-2cdf-47b8-bc2a-e614440050b8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f95c6429-2cdf-47b8-bc2a-e614440050b8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f95c6429-2cdf-47b8-bc2a-e614440050b8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.348:82]
9fd2324b-9e02-4eab-bd4a-8e2be4fcd545
ms: 893
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:41.648 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9fd2324b-9e02-4eab-bd4a-8e2be4fcd545'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
881
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9fd2324b-9e02-4eab-bd4a-8e2be4fcd545'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:42.536 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:42.537 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:42.537 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:42.538 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:42.538 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:42.538 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:42.540 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:42.540 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:42.541 [print] "true";"true";"true"
76
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.349:82]
32e0942d-729d-4021-bdc3-17147ddaf797
ms: 891
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:42.300 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '32e0942d-729d-4021-bdc3-17147ddaf797'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
875
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '32e0942d-729d-4021-bdc3-17147ddaf797'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:43.183 [print] https://service.pdok.nl/rvo/potentiekaart-reststromen/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:43.184 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:43.185 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:43.185 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:43.186 [print] Beheer PDOK
57
* print operateson
0
04:52:43.186 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=24eb504e-f5f3-4ecf-b760-cc5630e82a57#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=6ea55ec4-f312-40ef-9935-68806e61b496#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=af784610-df36-4d40-bac0-23d8e728999f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=34dacd72-d2fb-4e28-844d-73d3b9c3fef2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=419b85e5-04ee-4cc9-b910-bc58594a943a#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=119f7512-a71e-4d1a-82e7-7a2b63f9338b#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:43.188 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:43.189 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:43.190 [print] "true";"true"
76
* eval db.writeln('"32e0942d-729d-4021-bdc3-17147ddaf797","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"32e0942d-729d-4021-bdc3-17147ddaf797","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"32e0942d-729d-4021-bdc3-17147ddaf797","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.350:82]
5be1b57b-2cac-4119-92eb-700346543d47
ms: 896
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:42.436 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5be1b57b-2cac-4119-92eb-700346543d47'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5be1b57b-2cac-4119-92eb-700346543d47'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:43.327 [print] https:\/\/inspire.caris.nl\/geoserver\/boundary\/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:43.327 [print] ["OGC:WFS","INSPIRE Atom"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:43.328 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:43.328 [print] ["OGC:WFS","INSPIRE Atom"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:43.329 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:52:43.329 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dc528841-cb0f-4962-83bc-5c84ca6c4926#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:43.330 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:43.331 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Dataset is geharmoniseerd";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:43.332 [print] "true";"true"
76
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.351:82]
54122631-d343-40be-9c28-e44626b37a0e
ms: 907
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:42.500 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '54122631-d343-40be-9c28-e44626b37a0e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
895
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '54122631-d343-40be-9c28-e44626b37a0e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:43.403 [print] https://service.pdok.nl/cbs/hh/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:43.403 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:43.404 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:43.404 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:43.405 [print] Beheer PDOK
57
* print operateson
0
04:52:43.405 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:43.406 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:43.407 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:43.408 [print] "true";"true"
76
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.352:82]
95883512-2cc0-476f-8637-6d70709aefaf
ms: 913
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:42.544 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '95883512-2cc0-476f-8637-6d70709aefaf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
898
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '95883512-2cc0-476f-8637-6d70709aefaf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:43.450 [print] https://service.pdok.nl/rvo/habitatrichtlijntypen/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:43.450 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:43.451 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:43.452 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:43.453 [print] Beheer PDOK
57
* print operateson
0
04:52:43.453 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:43.454 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:43.455 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:43.456 [print] "true";"true"
76
* eval db.writeln('"95883512-2cc0-476f-8637-6d70709aefaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"95883512-2cc0-476f-8637-6d70709aefaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"95883512-2cc0-476f-8637-6d70709aefaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.353:82]
efb5222c-112a-4c57-9bbf-f2af918cb9b5
ms: 890
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:43.194 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'efb5222c-112a-4c57-9bbf-f2af918cb9b5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
878
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'efb5222c-112a-4c57-9bbf-f2af918cb9b5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:44.080 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-aansluitende-zone-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:44.081 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:44.081 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:44.081 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:44.082 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:52:44.082 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=424c1d5c-063b-4372-99f5-c85786b4a9d0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:44.083 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:44.084 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:44.084 [print] "true";"true"
76
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.354:82]
bbf2e6ed-e2c8-472e-bb97-e05d11177524
ms: 894
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:43.335 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bbf2e6ed-e2c8-472e-bb97-e05d11177524'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bbf2e6ed-e2c8-472e-bb97-e05d11177524'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:44.225 [print] https://service.pdok.nl/rvo/vogelrichtlijngebieds/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:44.225 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:44.226 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:44.226 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:52:44.226 [print] Beheer PDOK
57
* print operateson
0
04:52:44.227 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cbeaebc3-815a-48af-a978-0e16892865fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:44.228 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:44.228 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:44.229 [print] "true";"true"
76
* eval db.writeln('"bbf2e6ed-e2c8-472e-bb97-e05d11177524","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bbf2e6ed-e2c8-472e-bb97-e05d11177524","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bbf2e6ed-e2c8-472e-bb97-e05d11177524","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.355:82]
fe4b36d5-8f69-403f-b084-ce010a4ae3b2
ms: 891
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:43.411 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fe4b36d5-8f69-403f-b084-ce010a4ae3b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
880
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fe4b36d5-8f69-403f-b084-ce010a4ae3b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:44.298 [print] https://service.pdok.nl/rvo/natura2000/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:44.298 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:44.299 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:44.299 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:52:44.300 [print] Beheer PDOK
57
* print operateson
0
04:52:44.300 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8829e5dd-c861-4639-a6c8-fdbb6e3440d2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:44.301 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:44.301 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:44.302 [print] "false";"false"
76
* eval db.writeln('"fe4b36d5-8f69-403f-b084-ce010a4ae3b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fe4b36d5-8f69-403f-b084-ce010a4ae3b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fe4b36d5-8f69-403f-b084-ce010a4ae3b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.356:82]
d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507
ms: 913
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:43.460 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
900
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:44.367 [print] https://service.pdok.nl/rvo/invasieve-exoten/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:44.368 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:44.369 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:44.369 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:44.370 [print] Beheer PDOK
57
* print operateson
0
04:52:44.370 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3703b249-a0eb-484e-ba7a-10e31a55bcec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:44.371 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:44.372 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:44.372 [print] "true";"true"
76
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.357:82]
b8300fd4-3224-4b44-ae92-3eb82da0bb85
ms: 955
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:44.087 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b8300fd4-3224-4b44-ae92-3eb82da0bb85'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
940
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b8300fd4-3224-4b44-ae92-3eb82da0bb85'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:45.036 [print] https://service.pdok.nl/rvo/vogelrichtlijnsoorten/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:45.037 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:45.038 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:45.038 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:45.039 [print] Beheer PDOK
57
* print operateson
0
04:52:45.039 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:45.041 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:45.041 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:45.042 [print] "true";"true"
76
* eval db.writeln('"b8300fd4-3224-4b44-ae92-3eb82da0bb85","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b8300fd4-3224-4b44-ae92-3eb82da0bb85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b8300fd4-3224-4b44-ae92-3eb82da0bb85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.358:82]
dc250a60-0ac6-487f-8a42-cb4f67582f34
ms: 897
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:44.232 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dc250a60-0ac6-487f-8a42-cb4f67582f34'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
885
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dc250a60-0ac6-487f-8a42-cb4f67582f34'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:45.124 [print] https://service.pdok.nl/kadaster/ad/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:45.124 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:45.125 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:45.125 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:45.126 [print] Beheer PDOK
57
* print operateson
0
04:52:45.126 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a5f961e9-ebdd-41e2-b8e8-ab33ed340a83#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:45.127 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:45.128 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:45.129 [print] "true";"true"
76
* eval db.writeln('"dc250a60-0ac6-487f-8a42-cb4f67582f34","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dc250a60-0ac6-487f-8a42-cb4f67582f34","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dc250a60-0ac6-487f-8a42-cb4f67582f34","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.359:82]
ddf33bff-8de3-4cca-b6f5-24d18daa502f
ms: 888
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:44.305 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ddf33bff-8de3-4cca-b6f5-24d18daa502f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
873
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ddf33bff-8de3-4cca-b6f5-24d18daa502f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:45.186 [print] https://service.pdok.nl/rws/kaderrichtlijnwater/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:45.187 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:45.187 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:45.188 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:45.188 [print] Beheer PDOK
57
* print operateson
0
04:52:45.188 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbeag#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbead#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:45.190 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:45.191 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:45.192 [print] "true";"true";"true"
76
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.360:82]
68a7e4c1-0073-4a1a-a6df-084d2badf45a
ms: 885
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:44.375 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68a7e4c1-0073-4a1a-a6df-084d2badf45a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
873
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68a7e4c1-0073-4a1a-a6df-084d2badf45a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:45.254 [print] https://service.pdok.nl/cbs/wijkenbuurten/2019/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:45.255 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:45.256 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:45.257 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:45.257 [print] Beheer PDOK
57
* print operateson
0
04:52:45.257 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:45.259 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:45.259 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:45.260 [print] "true";"true"
76
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.361:82]
78155dcb-61fa-4c16-896f-637f5936ce6c
ms: 888
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:45.045 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '78155dcb-61fa-4c16-896f-637f5936ce6c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '78155dcb-61fa-4c16-896f-637f5936ce6c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:45.928 [print] https://service.pdok.nl/provincies/zwemwaterkwaliteit-provinciaal-rijkswateren/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:45.929 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:45.929 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:45.929 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:45.930 [print] Beheer PDOK
57
* print operateson
0
04:52:45.930 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=df5ee213-e1bd-433b-80f7-4ea20f493ca8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:45.931 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:45.932 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:45.932 [print] "true";"true"
76
* eval db.writeln('"78155dcb-61fa-4c16-896f-637f5936ce6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"78155dcb-61fa-4c16-896f-637f5936ce6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"78155dcb-61fa-4c16-896f-637f5936ce6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.362:82]
dbca1cca-a5f9-497f-9947-2638244b194b
ms: 885
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:45.131 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dbca1cca-a5f9-497f-9947-2638244b194b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
2
29
When method get
871
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dbca1cca-a5f9-497f-9947-2638244b194b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:46.011 [print] https://service.pdok.nl/kvk/overheidsdiensten/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:46.012 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:46.012 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:46.013 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:46.013 [print] Beheer PDOK
57
* print operateson
0
04:52:46.013 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c935f2ab-9b65-4dc4-94a0-73aeb840a941#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:46.015 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:46.015 [print] "Conform verordening";"Conform technische specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:46.016 [print] "true";"true"
76
* eval db.writeln('"dbca1cca-a5f9-497f-9947-2638244b194b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dbca1cca-a5f9-497f-9947-2638244b194b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dbca1cca-a5f9-497f-9947-2638244b194b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.363:82]
0fa448bb-332b-40b2-adab-13626b29bee6
ms: 891
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:45.195 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0fa448bb-332b-40b2-adab-13626b29bee6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0fa448bb-332b-40b2-adab-13626b29bee6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:46.082 [print] https://service.pdok.nl/kadaster/lu/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:46.082 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:46.083 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:46.083 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:46.084 [print] Beheer PDOK
57
* print operateson
0
04:52:46.084 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a88#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:46.085 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:46.086 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:46.087 [print] "true";"true"
76
* eval db.writeln('"0fa448bb-332b-40b2-adab-13626b29bee6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0fa448bb-332b-40b2-adab-13626b29bee6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0fa448bb-332b-40b2-adab-13626b29bee6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.364:82]
7c651e06-858e-4184-8de3-da9def9c6fd0
ms: 897
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:45.262 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7c651e06-858e-4184-8de3-da9def9c6fd0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
882
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c651e06-858e-4184-8de3-da9def9c6fd0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
4
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:46.155 [print] https://service.pdok.nl/bzk/bro-bodemkaart/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:46.155 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:46.156 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:46.156 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:46.157 [print] Beheer PDOK
57
* print operateson
0
04:52:46.157 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:46.158 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:46.159 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:46.160 [print] "true";"true"
76
* eval db.writeln('"7c651e06-858e-4184-8de3-da9def9c6fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7c651e06-858e-4184-8de3-da9def9c6fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7c651e06-858e-4184-8de3-da9def9c6fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.365:82]
7358a8bc-42db-4eeb-9b3e-a081f7803b45
ms: 912
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:45.935 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7358a8bc-42db-4eeb-9b3e-a081f7803b45'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
899
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7358a8bc-42db-4eeb-9b3e-a081f7803b45'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:46.840 [print] https://service.pdok.nl/kadaster/au/atom/v2_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:46.841 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:46.842 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:46.842 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:52:46.842 [print] Beheer PDOK
57
* print operateson
0
04:52:46.842 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7dd1fd45-ace5-41e0-93a6-64e3be231717#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:46.845 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:46.846 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:46.847 [print] "true";"true"
76
* eval db.writeln('"7358a8bc-42db-4eeb-9b3e-a081f7803b45","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7358a8bc-42db-4eeb-9b3e-a081f7803b45","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7358a8bc-42db-4eeb-9b3e-a081f7803b45","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.366:82]
b85d4a0a-c0f7-42f4-9316-b214d205ca38
ms: 957
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:46.019 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b85d4a0a-c0f7-42f4-9316-b214d205ca38'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
944
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b85d4a0a-c0f7-42f4-9316-b214d205ca38'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:46.970 [print] http://inspire.rdw.nl/www/download/rdw-inspire.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:46.971 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:46.972 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:46.972 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:46.972 [print] RDW
57
* print operateson
0
04:52:46.972 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe2f9091-1962-4073-9e3b-3e4aeed488a5#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:46.995 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:46.996 [print] "Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Evaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Gecontroleerd met INSPIRE verordening"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:46.997 [print] "true";"true"
76
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.367:82]
1f7db024-396a-4f3a-b2d9-d09996ea57d1
ms: 972
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:46.089 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1f7db024-396a-4f3a-b2d9-d09996ea57d1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
956
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1f7db024-396a-4f3a-b2d9-d09996ea57d1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:47.053 [print] https://service.pdok.nl/rws/richtlijnoverstromingsrisico/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:52:47.054 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:47.055 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:47.056 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:47.057 [print] Beheer PDOK
57
* print operateson
1
04:52:47.057 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=0e6bbc35-489b-4209-8e5c-41e36b9d0351#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=babb8ae8-533f-4fd1-be66-e8dcccf20b33#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=155f4288-e7c6-4278-8145-0e8cb5ffe52d#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:47.059 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:47.061 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:47.062 [print] "true";"true"
76
* eval db.writeln('"1f7db024-396a-4f3a-b2d9-d09996ea57d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1f7db024-396a-4f3a-b2d9-d09996ea57d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1f7db024-396a-4f3a-b2d9-d09996ea57d1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.368:82]
f5660ac6-8031-4acc-832c-1d1b82b062ba
ms: 959
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:46.163 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f5660ac6-8031-4acc-832c-1d1b82b062ba'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
924
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f5660ac6-8031-4acc-832c-1d1b82b062ba'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
22
04:52:47.116 [print] https://acc.gdngeoservices.nl/geoserver/download/aardwarmtepotentiekaart/aardwarmte.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:47.117 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:47.118 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:47.118 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:47.119 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:52:47.119 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=11a292bd-9022-4a9f-b1bf-02f5c89ad74a&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:47.120 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:47.121 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:47.121 [print] "true";"true"
76
* eval db.writeln('"f5660ac6-8031-4acc-832c-1d1b82b062ba","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f5660ac6-8031-4acc-832c-1d1b82b062ba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f5660ac6-8031-4acc-832c-1d1b82b062ba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.369:82]
101304f0-2cf2-4ce0-aa23-cd7e4000fbba
ms: 886
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:46.850 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '101304f0-2cf2-4ce0-aa23-cd7e4000fbba'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
874
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '101304f0-2cf2-4ce0-aa23-cd7e4000fbba'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:47.731 [print] https://service.pdok.nl/kadaster/sr/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:47.732 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:47.732 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:47.732 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:47.733 [print] Beheer PDOK
57
* print operateson
0
04:52:47.733 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:47.734 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:47.735 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:47.736 [print] "true";"true"
76
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.370:82]
15d2aa2a-1e55-4ca4-986b-0d12768675a1
ms: 893
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:47.001 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '15d2aa2a-1e55-4ca4-986b-0d12768675a1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '15d2aa2a-1e55-4ca4-986b-0d12768675a1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:47.888 [print] https://service.pdok.nl/provincies/natuurnetwerk-nederland/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:47.890 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:47.890 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:47.891 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:47.891 [print] Beheer PDOK
57
* print operateson
0
04:52:47.891 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c7d8d77b-8c47-4309-8c58-9b12b086407f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:47.893 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:47.893 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:47.894 [print] "true";"true"
76
* eval db.writeln('"15d2aa2a-1e55-4ca4-986b-0d12768675a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"15d2aa2a-1e55-4ca4-986b-0d12768675a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"15d2aa2a-1e55-4ca4-986b-0d12768675a1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.371:82]
b4485d59-a945-4940-a2f5-3ce7de6a947b
ms: 899
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:47.065 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b4485d59-a945-4940-a2f5-3ce7de6a947b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
885
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4485d59-a945-4940-a2f5-3ce7de6a947b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:47.958 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:47.959 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:47.960 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:47.960 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:47.961 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:47.962 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:47.963 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:47.964 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:47.966 [print] "true";"true";"true"
76
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.372:82]
52d0313e-0d2b-44b4-b51e-d9e504307f70
ms: 894
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:47.127 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '52d0313e-0d2b-44b4-b51e-d9e504307f70'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '52d0313e-0d2b-44b4-b51e-d9e504307f70'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:48.010 [print] https://service.pdok.nl/bzk/bro-environmental-monitoring-facilities/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:48.011 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:48.011 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:48.011 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:48.012 [print] Beheer PDOK
57
* print operateson
0
04:52:48.012 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
4
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:48.018 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:48.019 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:52:48.020 [print] "true";"true"
76
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.373:82]
f38ea40d-9029-465c-9db2-c8a3099e21a2
ms: 888
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:47.739 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f38ea40d-9029-465c-9db2-c8a3099e21a2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f38ea40d-9029-465c-9db2-c8a3099e21a2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:48.621 [print] https://service.pdok.nl/provincies/wet-ammoniak-veehouderij-gebieden/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:48.622 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:48.623 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:48.623 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:48.624 [print] Beheer PDOK
57
* print operateson
0
04:52:48.624 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:48.625 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:48.626 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:48.627 [print] "true";"true"
76
* eval db.writeln('"f38ea40d-9029-465c-9db2-c8a3099e21a2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f38ea40d-9029-465c-9db2-c8a3099e21a2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f38ea40d-9029-465c-9db2-c8a3099e21a2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.374:82]
91b1f8ca-63a0-4ce6-b7e1-456ee6945638
ms: 889
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:47.897 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '91b1f8ca-63a0-4ce6-b7e1-456ee6945638'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
878
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '91b1f8ca-63a0-4ce6-b7e1-456ee6945638'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:48.781 [print] https://service.pdok.nl/rvo/schelpdierpercelen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:48.782 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:48.783 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:48.783 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:52:48.783 [print] Beheer PDOK
57
* print operateson
0
04:52:48.783 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b4e95a-12d7-4c74-933c-cb267cfe0bcf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:48.785 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:48.785 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:48.786 [print] "true";"true"
76
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.375:82]
838d49cd-bcec-4e92-9172-fabb96c21b3d
ms: 893
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:47.978 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '838d49cd-bcec-4e92-9172-fabb96c21b3d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
881
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '838d49cd-bcec-4e92-9172-fabb96c21b3d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:48.866 [print] https://service.pdok.nl/kadaster/wkpb/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:48.867 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:48.868 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:48.868 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:48.869 [print] Beheer PDOK
57
* print operateson
0
04:52:48.869 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5d2ffea6-e7c5-4e29-9474-c13718828779#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:48.870 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:48.871 [print] "Conform verordening";"Conform technische specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:48.871 [print] "true";"true"
76
* eval db.writeln('"838d49cd-bcec-4e92-9172-fabb96c21b3d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"838d49cd-bcec-4e92-9172-fabb96c21b3d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"838d49cd-bcec-4e92-9172-fabb96c21b3d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.376:82]
181b54ed-14d2-4fda-bae7-747972340f2f
ms: 893
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:48.024 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '181b54ed-14d2-4fda-bae7-747972340f2f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
877
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '181b54ed-14d2-4fda-bae7-747972340f2f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:48.909 [print] https://service.pdok.nl/provincies/provinciale-monumenten/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:48.910 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:48.911 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:48.912 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:48.913 [print] Beheer PDOK
57
* print operateson
0
04:52:48.913 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ca94a0cb-7561-4a10-a7d6-b840e56c33ff#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:48.914 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:48.916 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:48.917 [print] "true";"true"
76
* eval db.writeln('"181b54ed-14d2-4fda-bae7-747972340f2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"181b54ed-14d2-4fda-bae7-747972340f2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"181b54ed-14d2-4fda-bae7-747972340f2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.377:82]
2751ba40-5100-4186-81be-b7fdee95b49c
ms: 886
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:48.629 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2751ba40-5100-4186-81be-b7fdee95b49c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
873
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2751ba40-5100-4186-81be-b7fdee95b49c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:49.508 [print] https://service.pdok.nl/rvo/wetlands/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:49.509 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:49.510 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:49.510 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:49.510 [print] Beheer PDOK
57
* print operateson
2
04:52:49.512 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07d73b60-dfd6-4c54-9c82-9fac70c6c48e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:49.513 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:49.514 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:49.515 [print] "true";"true"
76
* eval db.writeln('"2751ba40-5100-4186-81be-b7fdee95b49c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2751ba40-5100-4186-81be-b7fdee95b49c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2751ba40-5100-4186-81be-b7fdee95b49c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.378:82]
2b087d2c-6a1c-4746-95c6-3d40bc4294f9
ms: 887
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:48.788 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2b087d2c-6a1c-4746-95c6-3d40bc4294f9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
874
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2b087d2c-6a1c-4746-95c6-3d40bc4294f9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:49.670 [print] https://service.pdok.nl/rws/ahn/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:49.670 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:49.671 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:49.671 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:49.672 [print] Beheer PDOK
57
* print operateson
0
04:52:49.672 [print] ["https:\/\/ngr.acceptatie.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification","https:\/\/ngr.acceptatie.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931g#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:49.673 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:49.674 [print] "Conform verordening";"Conform technische specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:49.675 [print] "true";"true"
76
* eval db.writeln('"2b087d2c-6a1c-4746-95c6-3d40bc4294f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2b087d2c-6a1c-4746-95c6-3d40bc4294f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2b087d2c-6a1c-4746-95c6-3d40bc4294f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.379:82]
fbe544b6-6e6f-43a0-80b9-ced1df78c434
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:48.874 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fbe544b6-6e6f-43a0-80b9-ced1df78c434'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fbe544b6-6e6f-43a0-80b9-ced1df78c434'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:49.769 [print] https:\/\/data.rivm.nl\/geo\/inspire\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:52:49.770 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:49.771 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:49.772 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:49.773 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:49.773 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:49.774 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:49.776 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:49.777 [print] "false";"false"
76
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.380:82]
37308f90-e619-4b62-ae9e-e656bb3f1649
ms: 893
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:48.920 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '37308f90-e619-4b62-ae9e-e656bb3f1649'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '37308f90-e619-4b62-ae9e-e656bb3f1649'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:49.806 [print] https:\/\/data.rivm.nl\/geo\/inspire\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:49.807 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:49.808 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:49.808 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:49.809 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:49.810 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:49.811 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:49.812 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:49.813 [print] "false";"false"
76
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.381:82]
72f30ca1-3b80-4020-b9ed-301b1a88df39
ms: 899
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:49.518 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '72f30ca1-3b80-4020-b9ed-301b1a88df39'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
887
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '72f30ca1-3b80-4020-b9ed-301b1a88df39'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:50.411 [print] https:\/\/data.rivm.nl\/geo\/inspire\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:50.412 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:50.413 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:50.413 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:50.414 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:50.414 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=588a4cb1-b442-4ac1-87e4-40401e353166#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:50.415 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:50.416 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:50.416 [print] "false";"false"
76
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.382:82]
dc9fbc85-1263-4a1b-b001-7be701a6039e
ms: 900
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:49.678 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dc9fbc85-1263-4a1b-b001-7be701a6039e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dc9fbc85-1263-4a1b-b001-7be701a6039e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:50.573 [print] https://service.pdok.nl/kadaster/plu/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:50.574 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:50.574 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:50.574 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:50.575 [print] Beheer PDOK
57
* print operateson
0
04:52:50.575 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a36#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:50.576 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:50.577 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:50.578 [print] "true";"true"
76
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.383:82]
f59357eb-185f-42a5-b465-90bfa6e3e416
ms: 967
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:49.780 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f59357eb-185f-42a5-b465-90bfa6e3e416'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
900
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f59357eb-185f-42a5-b465-90bfa6e3e416'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:50.687 [print] https:\/\/data.rivm.nl\/geo\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:50.687 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:50.688 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:50.688 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:50.689 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:50.689 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:50.691 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:50.691 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
55
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:50.747 [print] "false";"false"
76
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.384:82]
252db472-201d-430b-9c55-4d37563787bc
ms: 923
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:49.816 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '252db472-201d-430b-9c55-4d37563787bc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
898
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '252db472-201d-430b-9c55-4d37563787bc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
9
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:50.758 [print] https://service.pdok.nl/rws/vaarwegmarkeringennld/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:50.760 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:50.760 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:50.761 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:50.762 [print] Beheer PDOK
57
* print operateson
1
04:52:50.762 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=be1b1514-8d1f-48e1-9624-fee9b784138b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:50.764 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:50.765 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:50.766 [print] "true";"true"
76
* eval db.writeln('"252db472-201d-430b-9c55-4d37563787bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"252db472-201d-430b-9c55-4d37563787bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"252db472-201d-430b-9c55-4d37563787bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.385:82]
47d416f8-76e8-441c-9b19-c8f889dfe62c
ms: 910
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:50.419 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '47d416f8-76e8-441c-9b19-c8f889dfe62c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
898
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '47d416f8-76e8-441c-9b19-c8f889dfe62c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:51.324 [print] https://service.pdok.nl/kadaster/gn/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:51.325 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:51.326 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:51.326 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:51.327 [print] Beheer PDOK
57
* print operateson
0
04:52:51.327 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:51.328 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:51.329 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:51.329 [print] "true";"true"
76
* eval db.writeln('"47d416f8-76e8-441c-9b19-c8f889dfe62c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"47d416f8-76e8-441c-9b19-c8f889dfe62c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"47d416f8-76e8-441c-9b19-c8f889dfe62c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.386:82]
bbf57a25-0476-4d46-8e68-caaa5864a177
ms: 892
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:50.581 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bbf57a25-0476-4d46-8e68-caaa5864a177'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bbf57a25-0476-4d46-8e68-caaa5864a177'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:51.467 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:51.468 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:51.468 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:51.468 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:51.469 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:52:51.469 [print] https://haleconnect.com/services/bsp/org.874.b005ca06-7d3d-4805-bcac-0fb65196db22/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:51.471 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:51.471 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:51.472 [print] true
76
* eval db.writeln('"bbf57a25-0476-4d46-8e68-caaa5864a177","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bbf57a25-0476-4d46-8e68-caaa5864a177","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bbf57a25-0476-4d46-8e68-caaa5864a177","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.387:82]
27c18143-e51a-4ecf-858f-b6563cbc5a25
ms: 881
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:50.750 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '27c18143-e51a-4ecf-858f-b6563cbc5a25'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
868
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '27c18143-e51a-4ecf-858f-b6563cbc5a25'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:51.625 [print] https://service.pdok.nl/cbs/vierkantstatistieken100m/2018/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:51.626 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:51.627 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:51.627 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:51.628 [print] Beheer PDOK
57
* print operateson
0
04:52:51.628 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:51.629 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:51.630 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:51.631 [print] "true";"true";"true"
76
* eval db.writeln('"27c18143-e51a-4ecf-858f-b6563cbc5a25","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"27c18143-e51a-4ecf-858f-b6563cbc5a25","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"27c18143-e51a-4ecf-858f-b6563cbc5a25","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.388:82]
ebd029f5-6e8f-4d61-b89a-11427c96bf3a
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:50.770 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ebd029f5-6e8f-4d61-b89a-11427c96bf3a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ebd029f5-6e8f-4d61-b89a-11427c96bf3a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:51.667 [print] https:\/\/inspire.caris.nl\/gs4\/LAT2018OF\/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:51.668 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:51.669 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:51.669 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:51.670 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:52:51.670 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=be6551de-a709-4c6d-a5e2-f63f0cf038ba&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:51.671 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:51.672 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:51.673 [print] "true";"true"
76
* eval db.writeln('"ebd029f5-6e8f-4d61-b89a-11427c96bf3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ebd029f5-6e8f-4d61-b89a-11427c96bf3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ebd029f5-6e8f-4d61-b89a-11427c96bf3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.389:82]
1c0dcc64-91aa-4d44-a9e3-54355556f5e7
ms: 914
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:51.332 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
4
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1c0dcc64-91aa-4d44-a9e3-54355556f5e7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
894
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1c0dcc64-91aa-4d44-a9e3-54355556f5e7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:52.239 [print] https:\/\/service.pdok.nl\/lv\/bag\/wfs\/v2_0?request=getCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:52.240 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:52.241 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:52.241 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:52.242 [print] Beheer PDOK
57
* print operateson
0
04:52:52.242 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:52.244 [print] "http:\/\/";"";"http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:52.245 [print] "";"Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:52.246 [print] "true";"true";"true"
76
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.390:82]
9e2e977a-16a6-42a4-a208-c4f70704f383
ms: 901
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:51.475 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9e2e977a-16a6-42a4-a208-c4f70704f383'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
886
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9e2e977a-16a6-42a4-a208-c4f70704f383'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:52.371 [print] https:\/\/service.pdok.nl\/lv\/bag\/wms\/v2_0?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:52.371 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:52.372 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:52.372 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:52.373 [print] Beheer PDOK
57
* print operateson
0
04:52:52.373 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:52.375 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:52.376 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:52.376 [print] "true";"true"
76
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.391:82]
67bcc21d-beda-449d-975c-00a4fa80f2b7
ms: 945
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:51.633 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '67bcc21d-beda-449d-975c-00a4fa80f2b7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
933
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '67bcc21d-beda-449d-975c-00a4fa80f2b7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:52.573 [print] https:\/\/service.pdok.nl\/hwh\/hydrografie\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:52.574 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:52.575 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:52.575 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:52.575 [print] Beheer PDOK
57
* print operateson
0
04:52:52.575 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07575774-57a1-4419-bab4-6c88fdeb02b2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:52.577 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:52.577 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:52.578 [print] "true";"true"
76
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.392:82]
cf89409f-e268-4adb-9f34-a63b84ecfc12
ms: 942
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:51.675 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cf89409f-e268-4adb-9f34-a63b84ecfc12'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
930
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cf89409f-e268-4adb-9f34-a63b84ecfc12'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:52.613 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:52.613 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:52.614 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:52.614 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:52.614 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:52:52.615 [print] https://haleconnect.com/services/bsp/org.874.f8e8e27f-9a8a-4704-b3d6-f42dc97157d2/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:52.616 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:52.617 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:52.617 [print] true
76
* eval db.writeln('"cf89409f-e268-4adb-9f34-a63b84ecfc12","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cf89409f-e268-4adb-9f34-a63b84ecfc12","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cf89409f-e268-4adb-9f34-a63b84ecfc12","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.393:82]
5be14ec9-9bb3-4395-a061-e7e78d04a527
ms: 889
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:52.249 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5be14ec9-9bb3-4395-a061-e7e78d04a527'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5be14ec9-9bb3-4395-a061-e7e78d04a527'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:53.132 [print] https://service.pdok.nl/kadaster/bu/wms/v1_0?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:53.133 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:53.134 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:53.134 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:53.135 [print] Beheer PDOK
57
* print operateson
0
04:52:53.135 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b4ae622c-6201-49d8-bd2e-f7fce9206a1e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:53.136 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:53.137 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:53.138 [print] "true";"true"
76
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.394:82]
2bd75565-db8b-4df7-a3a6-0e9ca5289e5e
ms: 882
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:52.379 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2bd75565-db8b-4df7-a3a6-0e9ca5289e5e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
867
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2bd75565-db8b-4df7-a3a6-0e9ca5289e5e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:53.255 [print] https://haleconnect.com/ows/services/org.292.2350b86b-3efd-47e4-883e-519bfa8d0aba_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:53.256 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:53.256 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:53.256 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:53.257 [print] Rijkswaterstaat
57
* print operateson
0
04:52:53.257 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2350b86b-3efd-47e4-883e-519bfa8d0abd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:53.259 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:53.260 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:53.261 [print] "true";"true"
76
* eval db.writeln('"2bd75565-db8b-4df7-a3a6-0e9ca5289e5e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2bd75565-db8b-4df7-a3a6-0e9ca5289e5e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2bd75565-db8b-4df7-a3a6-0e9ca5289e5e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.395:82]
13c6144d-231b-4a52-91d5-edde65076aff
ms: 889
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:52.581 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '13c6144d-231b-4a52-91d5-edde65076aff'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
877
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '13c6144d-231b-4a52-91d5-edde65076aff'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:53.465 [print] https://haleconnect.com/ows/services/org.292.2350b86b-3efd-47e4-883e-519bfa8d0aba_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:53.466 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:53.466 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:53.467 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:53.467 [print] Rijkswaterstaat
57
* print operateson
0
04:52:53.467 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2350b86b-3efd-47e4-883e-519bfa8d0abd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:53.469 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:53.469 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:53.470 [print] true
76
* eval db.writeln('"13c6144d-231b-4a52-91d5-edde65076aff","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"13c6144d-231b-4a52-91d5-edde65076aff","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"13c6144d-231b-4a52-91d5-edde65076aff","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.396:82]
c4e7ab54-da5c-46ea-a5b5-53df01873240
ms: 888
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:52.620 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c4e7ab54-da5c-46ea-a5b5-53df01873240'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c4e7ab54-da5c-46ea-a5b5-53df01873240'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:53.503 [print] https://haleconnect.com/ows/services/org.292.c3955762-73a3-4c16-a15c-f3869487a1e3_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:53.504 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:53.504 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:53.504 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:53.505 [print] Rijkswaterstaat
57
* print operateson
0
04:52:53.505 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3955762-73a3-4c16-a15c-f3869487a1ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:53.506 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:53.507 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:53.508 [print] "true";"true"
76
* eval db.writeln('"c4e7ab54-da5c-46ea-a5b5-53df01873240","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c4e7ab54-da5c-46ea-a5b5-53df01873240","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c4e7ab54-da5c-46ea-a5b5-53df01873240","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.397:82]
822d9417-a69f-4665-bc42-8c6d84e5dedb
ms: 897
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:53.140 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '822d9417-a69f-4665-bc42-8c6d84e5dedb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '822d9417-a69f-4665-bc42-8c6d84e5dedb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:54.032 [print] https://haleconnect.com/ows/services/org.292.c3955762-73a3-4c16-a15c-f3869487a1e3_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:54.033 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:54.034 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:54.034 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:54.034 [print] Rijkswaterstaat
57
* print operateson
0
04:52:54.034 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3955762-73a3-4c16-a15c-f3869487a1ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:54.036 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:54.037 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:54.037 [print] true
76
* eval db.writeln('"822d9417-a69f-4665-bc42-8c6d84e5dedb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"822d9417-a69f-4665-bc42-8c6d84e5dedb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"822d9417-a69f-4665-bc42-8c6d84e5dedb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.398:82]
9eefe17b-943f-449f-a359-c790742fe67b
ms: 882
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:53.264 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9eefe17b-943f-449f-a359-c790742fe67b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
867
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9eefe17b-943f-449f-a359-c790742fe67b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:54.138 [print] https://haleconnect.com/ows/services/org.292.c4dce550-ea49-11e3-ac10-0800200c9a68_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:54.140 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:54.141 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:54.141 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:54.142 [print] Rijkswaterstaat
57
* print operateson
0
04:52:54.142 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=891ddc2d-8949-4a45-be96-c65b87c41f13#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:54.144 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:54.145 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:54.145 [print] "true";"true"
76
* eval db.writeln('"9eefe17b-943f-449f-a359-c790742fe67b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9eefe17b-943f-449f-a359-c790742fe67b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9eefe17b-943f-449f-a359-c790742fe67b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.399:82]
c1c478ec-2453-49cd-a445-0b68789ce2b8
ms: 886
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:53.473 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c1c478ec-2453-49cd-a445-0b68789ce2b8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
874
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c1c478ec-2453-49cd-a445-0b68789ce2b8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:54.354 [print] https://haleconnect.com/ows/services/org.292.c4dce550-ea49-11e3-ac10-0800200c9a68_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:54.355 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:54.355 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:54.356 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:54.356 [print] Rijkswaterstaat
57
* print operateson
0
04:52:54.356 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=891ddc2d-8949-4a45-be96-c65b87c41f13#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:54.357 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:54.358 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:54.359 [print] true
76
* eval db.writeln('"c1c478ec-2453-49cd-a445-0b68789ce2b8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c1c478ec-2453-49cd-a445-0b68789ce2b8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c1c478ec-2453-49cd-a445-0b68789ce2b8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.400:82]
bb85e473-c04a-42a6-9fdc-f0bb0239327e
ms: 888
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:53.511 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bb85e473-c04a-42a6-9fdc-f0bb0239327e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bb85e473-c04a-42a6-9fdc-f0bb0239327e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:54.394 [print] https://service.pdok.nl/kadaster/bu/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:54.395 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:54.395 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:54.396 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:52:54.396 [print] Beheer PDOK
57
* print operateson
0
04:52:54.396 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b4ae622c-6201-49d8-bd2e-f7fce9206a1e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:54.397 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:54.398 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:54.399 [print] "true";"true"
76
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.401:82]
d9227c23-9d36-46ce-8ac9-a208103c218e
ms: 920
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:54.040 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd9227c23-9d36-46ce-8ac9-a208103c218e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
908
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd9227c23-9d36-46ce-8ac9-a208103c218e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:54.955 [print] https://haleconnect.com/ows/services/org.292.cefad637-5ffd-4dd0-b475-bc125a11f7e6_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:54.955 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:54.956 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:54.956 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:54.957 [print] Rijkswaterstaat
57
* print operateson
0
04:52:54.957 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cefad637-5ffd-4dd0-b475-bc125a11f7ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:54.958 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:54.959 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:54.960 [print] "true";"true"
76
* eval db.writeln('"d9227c23-9d36-46ce-8ac9-a208103c218e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d9227c23-9d36-46ce-8ac9-a208103c218e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d9227c23-9d36-46ce-8ac9-a208103c218e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.402:82]
43a37418-365c-4848-b885-5823259ca7c9
ms: 898
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:54.148 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '43a37418-365c-4848-b885-5823259ca7c9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
885
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '43a37418-365c-4848-b885-5823259ca7c9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:55.041 [print] https://haleconnect.com/ows/services/org.292.cefad637-5ffd-4dd0-b475-bc125a11f7e6_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:55.042 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:55.042 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:55.042 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:55.043 [print] Rijkswaterstaat
57
* print operateson
0
04:52:55.043 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cefad637-5ffd-4dd0-b475-bc125a11f7ea#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:55.045 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:55.045 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:55.046 [print] true
76
* eval db.writeln('"43a37418-365c-4848-b885-5823259ca7c9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"43a37418-365c-4848-b885-5823259ca7c9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"43a37418-365c-4848-b885-5823259ca7c9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.403:82]
68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2
ms: 896
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:54.362 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
879
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:55.250 [print] https:\/\/geo.rijkswaterstaat.nl\/services\/ogc\/hws\/wmdc15\/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:55.251 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:55.252 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:55.252 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:55.254 [print] Rijkswaterstaat
57
* print operateson
0
04:52:55.254 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:55.256 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"Technical Guidance for the implementation of INSPIRE Download Services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:55.256 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:55.257 [print] "true";"true"
76
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.404:82]
68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2
ms: 904
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:54.402 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
888
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:55.298 [print] https:\/\/geo.rijkswaterstaat.nl\/services\/ogc\/hws\/wmdc15\/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:55.299 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:55.300 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:55.300 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:55.301 [print] Rijkswaterstaat
57
* print operateson
0
04:52:55.301 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:55.303 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:55.305 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:55.306 [print] "true";"true"
76
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.405:82]
7625d5e3-f358-461d-937e-91dd7c18ec2f
ms: 892
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:54.962 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7625d5e3-f358-461d-937e-91dd7c18ec2f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
877
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7625d5e3-f358-461d-937e-91dd7c18ec2f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:52:55.869 [print] https://haleconnect.com/ows/services/org.292.1bb6e186-633d-4a05-9fdf-b12a2f21fe6f_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:55.870 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:55.871 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:55.871 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:55.872 [print] Rijkswaterstaat
57
* print operateson
0
04:52:55.872 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1bb6e186-633d-4a05-9fdf-b12a2f21fe6m#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:55.874 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:55.874 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:55.875 [print] "true";"true"
76
* eval db.writeln('"7625d5e3-f358-461d-937e-91dd7c18ec2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7625d5e3-f358-461d-937e-91dd7c18ec2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7625d5e3-f358-461d-937e-91dd7c18ec2f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.406:82]
142cf0d7-10d9-46cd-ab5c-1eb213ab9204
ms: 907
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:55.049 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '142cf0d7-10d9-46cd-ab5c-1eb213ab9204'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
894
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '142cf0d7-10d9-46cd-ab5c-1eb213ab9204'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:55.951 [print] https://haleconnect.com/ows/services/org.292.1bb6e186-633d-4a05-9fdf-b12a2f21fe6f_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:55.952 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:55.953 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:55.953 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:55.953 [print] Rijkswaterstaat
57
* print operateson
0
04:52:55.954 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1bb6e186-633d-4a05-9fdf-b12a2f21fe6m#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:55.955 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:55.955 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:55.956 [print] true
76
* eval db.writeln('"142cf0d7-10d9-46cd-ab5c-1eb213ab9204","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"142cf0d7-10d9-46cd-ab5c-1eb213ab9204","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"142cf0d7-10d9-46cd-ab5c-1eb213ab9204","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.407:82]
9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1
ms: 889
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:55.261 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:56.145 [print] https://inspire.caris.nl/geoserver3/rws/wcs?service=WCS&version=2.0.1&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:56.146 [print] OGC:WCS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:56.146 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:56.147 [print] OGC:WCS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:56.147 [print] Rijkswaterstaat
57
* print operateson
0
04:52:56.147 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:56.149 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/id\/document\/tg\/download-wcs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:56.150 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:56.150 [print] "true";"true"
76
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.408:82]
9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3
ms: 896
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:55.309 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
882
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:56.199 [print] https://inspire.caris.nl/geoserver3/rws/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:56.200 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:56.200 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:56.201 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:56.201 [print] Rijkswaterstaat
57
* print operateson
0
04:52:56.202 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:56.203 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:56.204 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:56.205 [print] "false";"true"
76
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.409:82]
9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:55.878 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
883
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:56.773 [print] https:\/\/downloads.rijkswaterstaatdata.nl\/bodemhoogte_1mtr_insp
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:56.774 [print] ["landingpage","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:56.775 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:56.775 [print] ["landingpage","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:56.776 [print] Rijkswaterstaat
57
* print operateson
0
04:52:56.776 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:56.779 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:56.780 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:56.781 [print] "true";"true"
76
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9d9573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.410:82]
9d983730-e750-485a-9c0c-39bf9bt72cf8
ms: 896
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:55.959 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9d983730-e750-485a-9c0c-39bf9bt72cf8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
884
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d983730-e750-485a-9c0c-39bf9bt72cf8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:56.849 [print] https://downloads.rijkswaterstaatdata.nl/bodemhoogte_5mtr_atom_index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:56.850 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:56.851 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:56.851 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:56.851 [print] Rijkswaterstaat
57
* print operateson
0
04:52:56.852 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:56.853 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:56.854 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:56.854 [print] "true";"true"
76
* eval db.writeln('"9d983730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9d983730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9d983730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.411:82]
63aecda1-2216-4100-96dc-6bede78f9813
ms: 882
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:56.153 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '63aecda1-2216-4100-96dc-6bede78f9813'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
869
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '63aecda1-2216-4100-96dc-6bede78f9813'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:57.029 [print] https://haleconnect.com/ows/services/org.292.7c48322f-f9cf-4a08-aa63-c4de080c13a1_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:57.030 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:57.031 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:57.031 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:57.032 [print] Rijkswaterstaat
57
* print operateson
0
04:52:57.032 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7c48322f-f9cf-4a08-aa63-c4de080c13aab#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:57.033 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:57.034 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:57.035 [print] "true";"true"
76
* eval db.writeln('"63aecda1-2216-4100-96dc-6bede78f9813","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"63aecda1-2216-4100-96dc-6bede78f9813","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"63aecda1-2216-4100-96dc-6bede78f9813","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.412:82]
ad9e37cb-537f-4d98-8c03-820ee2d872d6
ms: 893
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:56.208 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ad9e37cb-537f-4d98-8c03-820ee2d872d6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
881
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ad9e37cb-537f-4d98-8c03-820ee2d872d6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:57.096 [print] https://haleconnect.com/ows/services/org.292.7c48322f-f9cf-4a08-aa63-c4de080c13a1_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:57.097 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:57.097 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:57.098 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:57.098 [print] Rijkswaterstaat
57
* print operateson
0
04:52:57.098 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=7c48322f-f9cf-4a08-aa63-c4de080c13aab#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:57.100 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:57.100 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:57.101 [print] true
76
* eval db.writeln('"ad9e37cb-537f-4d98-8c03-820ee2d872d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ad9e37cb-537f-4d98-8c03-820ee2d872d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ad9e37cb-537f-4d98-8c03-820ee2d872d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.413:82]
b2e66e8f-b1da-4de5-88d5-8aa8e6e00160
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:56.785 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b2e66e8f-b1da-4de5-88d5-8aa8e6e00160'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
882
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b2e66e8f-b1da-4de5-88d5-8aa8e6e00160'
3
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:57.679 [print] https://haleconnect.com/ows/services/org.292.f4520ae7-9229-4132-8d42-37b4f962212f_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:57.680 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:57.681 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:57.682 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:57.683 [print] Rijkswaterstaat
57
* print operateson
1
04:52:57.684 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f4520ae7-9229-4132-8d42-37b4f962212a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:52:57.685 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:57.687 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:57.688 [print] "true";"true"
76
* eval db.writeln('"b2e66e8f-b1da-4de5-88d5-8aa8e6e00160","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b2e66e8f-b1da-4de5-88d5-8aa8e6e00160","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b2e66e8f-b1da-4de5-88d5-8aa8e6e00160","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.414:82]
1887e931-e1b9-4512-9ca2-61526439fd7b
ms: 903
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:56.857 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1887e931-e1b9-4512-9ca2-61526439fd7b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
891
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1887e931-e1b9-4512-9ca2-61526439fd7b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:57.755 [print] https://haleconnect.com/ows/services/org.292.6cef2128-a227-4aa7-bc74-0e3797644d51_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:57.755 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:57.756 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:57.756 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:57.757 [print] Rijkswaterstaat
57
* print operateson
0
04:52:57.757 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cfc800cb-e903-4364-9415-ddd3e0ecf49f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:57.758 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:57.759 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:57.760 [print] "true";"true"
76
* eval db.writeln('"1887e931-e1b9-4512-9ca2-61526439fd7b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1887e931-e1b9-4512-9ca2-61526439fd7b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1887e931-e1b9-4512-9ca2-61526439fd7b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.415:82]
de93b602-8cbf-4cf0-9ce6-1b201e230ef1
ms: 892
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:57.038 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'de93b602-8cbf-4cf0-9ce6-1b201e230ef1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'de93b602-8cbf-4cf0-9ce6-1b201e230ef1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:52:57.922 [print] https://haleconnect.com/ows/services/org.292.6cef2128-a227-4aa7-bc74-0e3797644d51_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:57.923 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:57.924 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:57.924 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:57.925 [print] Rijkswaterstaat
57
* print operateson
0
04:52:57.926 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cfc800cb-e903-4364-9415-ddd3e0ecf49f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:57.928 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:52:57.929 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:57.930 [print] true
76
* eval db.writeln('"de93b602-8cbf-4cf0-9ce6-1b201e230ef1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"de93b602-8cbf-4cf0-9ce6-1b201e230ef1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"de93b602-8cbf-4cf0-9ce6-1b201e230ef1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.416:82]
bef46033-ce69-4ce4-b853-4ab65f6a424d
ms: 887
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:57.104 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bef46033-ce69-4ce4-b853-4ab65f6a424d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
873
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bef46033-ce69-4ce4-b853-4ab65f6a424d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:57.985 [print] https://haleconnect.com/ows/services/org.292.917b5ba0-4fdd-4654-8c18-b3ccdadaa550_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:57.986 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:57.987 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:57.987 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:57.988 [print] Rijkswaterstaat
57
* print operateson
0
04:52:57.988 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=917b5ba0-4fdd-4654-8c18-b3ccdadaa55a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:57.989 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:57.990 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:57.991 [print] "true";"true"
76
* eval db.writeln('"bef46033-ce69-4ce4-b853-4ab65f6a424d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bef46033-ce69-4ce4-b853-4ab65f6a424d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bef46033-ce69-4ce4-b853-4ab65f6a424d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.417:82]
b1910566-a591-4cce-838d-5ec9a836a786
ms: 954
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:57.691 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b1910566-a591-4cce-838d-5ec9a836a786'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
942
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b1910566-a591-4cce-838d-5ec9a836a786'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:58.640 [print] https://haleconnect.com/ows/services/org.292.f4520ae7-9229-4132-8d42-37b4f962212f_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:58.641 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:58.642 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:58.642 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:58.642 [print] Rijkswaterstaat
57
* print operateson
0
04:52:58.642 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f4520ae7-9229-4132-8d42-37b4f962212a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:58.644 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:58.644 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:58.645 [print] true
76
* eval db.writeln('"b1910566-a591-4cce-838d-5ec9a836a786","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b1910566-a591-4cce-838d-5ec9a836a786","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b1910566-a591-4cce-838d-5ec9a836a786","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.418:82]
5e5d713c-e89d-441f-a848-9e4fe5d48400
ms: 913
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:57.762 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5e5d713c-e89d-441f-a848-9e4fe5d48400'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
902
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5e5d713c-e89d-441f-a848-9e4fe5d48400'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:58.671 [print] https://haleconnect.com/ows/services/org.292.917b5ba0-4fdd-4654-8c18-b3ccdadaa550_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:58.671 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:58.672 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:58.672 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:58.673 [print] Rijkswaterstaat
57
* print operateson
0
04:52:58.673 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=917b5ba0-4fdd-4654-8c18-b3ccdadaa55a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:58.674 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:58.674 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:58.675 [print] true
76
* eval db.writeln('"5e5d713c-e89d-441f-a848-9e4fe5d48400","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5e5d713c-e89d-441f-a848-9e4fe5d48400","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5e5d713c-e89d-441f-a848-9e4fe5d48400","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.419:82]
bfcc588f-9393-4c70-b989-d9e92ac2f493
ms: 902
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:57.933 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bfcc588f-9393-4c70-b989-d9e92ac2f493'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
872
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bfcc588f-9393-4c70-b989-d9e92ac2f493'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
17
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:58.830 [print] https://service.pdok.nl/rws/ahn/wcs/v1_0?SERVICE=WCS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:58.830 [print] OGC:WCS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:52:58.831 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:58.831 [print] OGC:WCS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:58.832 [print] Beheer PDOK
57
* print operateson
0
04:52:58.832 [print] ["https:\/\/ngr.acceptatie.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification","https:\/\/ngr.acceptatie.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931g#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:58.833 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wcs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:58.834 [print] "Conform verordening";"De service voldoet aan de requirements van de invocable conformance class";"is conform Web Coverage Service - 2.1 specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:58.834 [print] "true";"true";"true"
76
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.420:82]
a4c5aa6c-6c7f-45d7-9799-011edd83d9c2
ms: 893
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:57.993 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a4c5aa6c-6c7f-45d7-9799-011edd83d9c2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
880
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a4c5aa6c-6c7f-45d7-9799-011edd83d9c2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:58.881 [print] https://inspire.caris.nl/gs5/ProspectingAndMiningPermitArea/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:58.882 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:58.883 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:58.883 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:58.884 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:52:58.884 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c2225e5d-b46f-4e38-8445-ab10fd40c0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:58.885 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:58.886 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:58.887 [print] "true";"true"
76
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.421:82]
c7dad4b9-42a8-452f-a33b-d4938ed22142
ms: 888
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:58.648 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c7dad4b9-42a8-452f-a33b-d4938ed22142'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
876
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c7dad4b9-42a8-452f-a33b-d4938ed22142'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:59.530 [print] https://inspire.caris.nl/gs5/MarineRegion/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:59.531 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:59.532 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:59.532 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:59.533 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:52:59.533 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f44dac86-2228-412f-8355-e56446ca9933#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:59.534 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:59.535 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:59.536 [print] "true";"true"
76
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.422:82]
2dd6c9df-bb47-40eb-af39-2d17f09b9bb9
ms: 899
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:58.678 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2dd6c9df-bb47-40eb-af39-2d17f09b9bb9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
886
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2dd6c9df-bb47-40eb-af39-2d17f09b9bb9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:59.571 [print] https://acc.gdngeoservices.nl/geoserver/geologicalmap/ows?request=GetCapabilities&service=WMS&version=1.3.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:59.572 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:59.573 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:59.573 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:59.574 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:52:59.575 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:59.576 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:59.577 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:59.577 [print] "true";"false"
76
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.423:82]
c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f
ms: 875
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:58.838 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
861
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:59.707 [print] https://inspire.caris.nl/gs5/ProspectingAndMiningPermitArea/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:52:59.708 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:59.709 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:59.709 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:59.710 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:52:59.710 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c2225e5d-b46f-4e38-8445-ab10fd40c0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:59.711 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:59.712 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:59.712 [print] "true";"true"
76
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.424:82]
95e2c712-1b91-4f24-9453-c56b95227717
ms: 892
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:58.890 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '95e2c712-1b91-4f24-9453-c56b95227717'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
875
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '95e2c712-1b91-4f24-9453-c56b95227717'
5
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:52:59.777 [print] https://data.rivm.nl/geo/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:52:59.777 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:52:59.778 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:52:59.778 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:52:59.779 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:52:59.779 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:52:59.780 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:52:59.781 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:52:59.782 [print] "true";"true";"true"
76
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.425:82]
d84b0a71-4460-4e16-8a7e-5507f2e6bcbf
ms: 915
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:59.539 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd84b0a71-4460-4e16-8a7e-5507f2e6bcbf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
902
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd84b0a71-4460-4e16-8a7e-5507f2e6bcbf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:53:00.449 [print] https://service.pdok.nl/bzk/bro-grondwaterspiegeldiepte/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:53:00.450 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:53:00.451 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:53:00.451 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
0
56
* print organisationpath
0
04:53:00.451 [print] Beheer PDOK
57
* print operateson
0
04:53:00.451 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b756dabe-a331-42cd-b45e-f61828ee4534#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:53:00.452 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
0
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:53:00.453 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:53:00.454 [print] "true";"true"
76
* eval db.writeln('"d84b0a71-4460-4e16-8a7e-5507f2e6bcbf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d84b0a71-4460-4e16-8a7e-5507f2e6bcbf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d84b0a71-4460-4e16-8a7e-5507f2e6bcbf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.426:82]
a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9
ms: 914
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:59.580 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
897
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:53:00.485 [print] https://service.pdok.nl/kadaster/lu/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:53:00.487 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:53:00.487 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:53:00.488 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:53:00.489 [print] Beheer PDOK
57
* print operateson
1
04:53:00.490 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a88#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:53:00.491 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:53:00.493 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:53:00.494 [print] "true";"true"
76
* eval db.writeln('"a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.427:82]
0bb27a13-76f1-4374-8d44-76e937198e8d
ms: 895
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:59.715 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0bb27a13-76f1-4374-8d44-76e937198e8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
884
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0bb27a13-76f1-4374-8d44-76e937198e8d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:53:00.605 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-Maritieme-grenzen-Noordzee.gml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:53:00.606 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:53:00.607 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:53:00.607 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:53:00.607 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:53:00.607 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=dc528841-cb0f-4962-83bc-5c84ca6c4926&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:53:00.609 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:53:00.609 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Dataset is geharmoniseerd";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:53:00.610 [print] "true";"true"
76
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.428:82]
cd370f58-0e54-48d6-b83b-ccd332bfb7c7
ms: 886
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:52:59.784 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cd370f58-0e54-48d6-b83b-ccd332bfb7c7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
873
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cd370f58-0e54-48d6-b83b-ccd332bfb7c7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:53:00.665 [print] https://data.rivm.nl/geo/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:53:00.666 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:53:00.666 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:53:00.666 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:53:00.667 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:53:00.667 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:53:00.668 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:53:00.669 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:53:00.670 [print] "false";"false"
76
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.429:82]
dae8f9e3-99af-4d21-9feb-29f2a1693077
ms: 889
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:53:00.456 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dae8f9e3-99af-4d21-9feb-29f2a1693077'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
877
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dae8f9e3-99af-4d21-9feb-29f2a1693077'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
0
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
0
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:53:01.340 [print] https://service.pdok.nl/kadaster/tn/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:53:01.341 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:53:01.341 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:53:01.342 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:53:01.342 [print] Beheer PDOK
57
* print operateson
0
04:53:01.342 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=6c06740d-058f-4a12-bb3f-bf68efd03d09#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8f45b8ef-0ce8-463a-9059-5efdcecb785c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
0
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:53:01.344 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:53:01.344 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:53:01.345 [print] "true";"true"
76
* eval db.writeln('"dae8f9e3-99af-4d21-9feb-29f2a1693077","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dae8f9e3-99af-4d21-9feb-29f2a1693077","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dae8f9e3-99af-4d21-9feb-29f2a1693077","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0